# 최근에 Data Explorer를 설치한 사이트에서 발생하는 이상 오류

**URL:** https://meta.discourse.org/t/data-explorer-unusual-error-on-a-site-on-which-de-only-recently-installed/254661
**Category:** Bug
**Tags:** data-explorer
**Created:** [2월 9, 2023, 7:05오후 UTC](https://meta.discourse.org/t/data-explorer-unusual-error-on-a-site-on-which-de-only-recently-installed/254661 "2023-02-09T19:05:55Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)
#### Post date: [2월 9, 2023, 7:05오후 UTC](https://meta.discourse.org/t/data-explorer-unusual-error-on-a-site-on-which-de-only-recently-installed/254661/1 "2023-02-09T19:05:55Z")

</div>

여러분 안녕하세요, 지난 며칠간 자체 호스팅된 Discourse 인스턴스에서 처음으로 Discourse [Data Explorer](https://meta.discourse.org/t/32566?silent=true)를 활성화한 후 이상한 동작/버그를 발견하여 보고드립니다. 해당 인스턴스는 1년 넘게 정상적으로 운영되고 있으며, 설정도 비교적 단순하고 다른 플러그인은 Akismet와 Calendar만 설치되어 있습니다.

Discourse [Data Explorer](https://meta.discourse.org/t/32566?silent=true)는 정상적인 절차대로 설치했으며, `containers/app.yml`에 추가하고 전체 `git pull`을 수행한 뒤 `/launcher rebuild app`을 실행하여 모든 것이 최신 상태인지 확인했습니다. 설치 및 재구축 과정에서는 오류 없이 정상적으로 완료되었습니다.

해당 Discourse 인스턴스는 (최신 버전인) 3.1.0.beta2 (현재 커밋 [7eb6223b04](https://github.com/discourse/discourse/commits/7eb6223b04c7bb0378a8964f8ea94d2b90a0d92e))를 사용 중이며, 다른 커스터마이징은 거의 없습니다.

저는 해당 인스턴스의 관리자(Admin) 권한을 가지고 있습니다.

새로운 쿼리를 생성하려고 하면 로딩 스피너가 계속 돌아가고, 콘솔에 JS 오류가 발생합니다:

```js
rest.js:63 Uncaught Error: You must overwrite `createProperties()` before saving a record
    at n.createProperties (rest.js:63:1)
    at n._saveNew (rest.js:42:1)
    at n.save (rest.js:66:1)
    at d.create (admin-plugins-explorer.js:247:1)
    at d._triggerAction (d-button.js:116:1)
    at d.click (d-button.js:80:1)

```

새 쿼리는 저장되지 않으며, 기존 쿼리도 편집할 수 없습니다. 실제로 편집 버튼이 보이지 않아, 여기에 어떤 이상한 권한 문제가 있는 건 아닌지 의심됩니다. JSON을 통해 가져오기(Import)를 시도해도 JS 콘솔에 동일한 오류가 발생합니다.

해당 오류를 검색해 보았지만 이 문제와 관련이 있는 내용은 전혀 찾을 수 없었습니다. Meta에서도 DE([Data Explorer](https://meta.discourse.org/t/32566?silent=true)) 관련 문제를 찾을 수 없습니다.

같은 Discourse 버전을 사용하고 DE가 설치된 다른 Discourse 인스턴스들은 정상적으로 작동하고 있습니다.

브라우저는 Brave를 사용 중이지만, 해당 사이트에 대해 Brave의 모든 프라이버시 기능을 비활성화했습니다. 일반 Google Chrome을 사용해도 동일한 오류가 발생합니다.

Discourse 오류 로그에서도 이 문제와 관련이 있는 오류는 찾을 수 없었습니다.

추가 디버깅 방법이나 커뮤니티의 조언이 있다면 알려주시면 감사하겠습니다.

---

<div class="post-metadata">

### Author: ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)
#### Post date: [2월 9, 2023, 7:25오후 UTC](https://meta.discourse.org/t/data-explorer-unusual-error-on-a-site-on-which-de-only-recently-installed/254661/2 "2023-02-09T19:25:02Z")

</div>

아, 알겠습니다. 실제로 해결 방법을 찾은 것 같습니다. 2일 전 회귀 버그가 발생했는데, 그 버그는 어제 수정되었지만 해당 수정이 제가 어제 마지막으로 `./launcher rebuild app`을 실행한 시점보다 몇 시간 **늦게** 병합되었습니다.

> <https://github.com/discourse/discourse-data-explorer/pull/223>
>
> In the widget version of the data-explorer we would maintain the \`editing\` state… after saving query changes. This was lost in upgrade to glimmer. 
> 
> \# Current State
> https://user-images.githubusercontent.com/50783505/217622464-79adaab6-84ed-4b64-93ae-c889aa8fb1bd.mp4
> 
> \# Updated State
> https://user-images.githubusercontent.com/50783505/217623475-1998fab6-0b70-42d2-923d-574efb9d5601.mov
> 
> \# Other Changes
> \- \`createProperties\` was added back to the \`query\` model as it is being utilized in the creation of a new data explorer query. This was accidentally removed and was causing errors when trying to create a new query.
> \- Add new-query test

재빌드를 한 번 더 수행했고, 이제 해결되었습니다. 다음 재빌드 시점까지 동일한 문제를 겪는 다른 사용자가 있을 수 있으므로 이 보고서를 그대로 두는 것이 좋을 것 같습니다. 이 문제는 2월 7일/8일 버전의 [Data Explorer](https://meta.discourse.org/t/32566?silent=true)를 실행 중이던 사용자에게만 영향을 미쳤을 가능성이 높습니다. 저는 운이 없게도 어제 점심시간(GMT)에 DE를 설치했었거든요.

요약: 해결 방법: `./launcher rebuild app`

---

<div class="post-metadata">

### Author: ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)
#### Post date: [2월 9, 2023, 7:26오후 UTC](https://meta.discourse.org/t/data-explorer-unusual-error-on-a-site-on-which-de-only-recently-installed/254661/3 "2023-02-09T19:26:00Z")

</div>

훌륭한 디버깅이네요 @pacharanero 🙂

타이밍이 안 맞아서 죄송합니다!

---

<div class="post-metadata">

### Author: ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)
#### Post date: [2월 9, 2023, 7:26오후 UTC](https://meta.discourse.org/t/data-explorer-unusual-error-on-a-site-on-which-de-only-recently-installed/254661/4 "2023-02-09T19:26:16Z")

</div>

수고했어요 @isaac!

---

<div class="post-metadata">

### Author: ![pacharanero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pacharanero/32/500583_2.png) [@pacharanero](https://meta.discourse.org/u/pacharanero)
#### Post date: [2월 9, 2023, 7:27오후 UTC](https://meta.discourse.org/t/data-explorer-unusual-error-on-a-site-on-which-de-only-recently-installed/254661/5 "2023-02-09T19:27:36Z")

</div>

> [@isaacjanzen](#):
>
> 훌륭한 디버깅

‘고무 오리’ 디버깅이죠! 메타에 버그 리포트를 작성하면, 보통 이 과정 덕분에 뇌가 마법 같은 해결책 대신 논리적으로 해결책을 찾으려고 노력하게 됩니다.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2월 9, 2023, 7:32오후 UTC](https://meta.discourse.org/t/data-explorer-unusual-error-on-a-site-on-which-de-only-recently-installed/254661/6 "2023-02-09T19:32:37Z")

</div>


