# Enable shared edits gives internal server error message

**URL:** https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281
**Category:** Self-hosting
**Tags:** unsupported-install, shared-edits
**Created:** [May 26, 2023, 12:31am UTC](https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281 "2023-05-26T00:31:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Milk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/milk/32/308674_2.png) [@Milk](https://meta.discourse.org/u/Milk)
#### Post date: [May 26, 2023, 12:31am UTC](https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281/1 "2023-05-26T00:31:25Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/9/9/5/9957f6a2b8dc4c3f7538bcc732bc5ca3a9305611.png)

The nginx access log says "212.229.85.68 - milkii [26/May/2023:00:23:51 +0000] “PUT /shared\_edits/p/20/enable.json HTTP/2.0” 500 46 “[https://x.xxxxxxxxx.x/t/shared-editing-test-thread/15](https://x.xxxxxxxxx.x/t/shared-editing-test-thread/15)” “Mozilla/5.0 (X11; Linux x86\_64; rv:109.0) Gecko/20100101 Firefox/113.0”

I’m relatively new to Discourse but not bad at sysadmin. Any advise? Might I be missing something? Thanks!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 26, 2023, 5:35am UTC](https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281/2 "2023-05-26T05:35:42Z")

</div>

Is there more detail in the `/logs`, or possibly in your browser console when you perform the action?

And can you share a list of other plugins you have installed?

---

<div class="post-metadata">

### Author: ![Milk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/milk/32/308674_2.png) [@Milk](https://meta.discourse.org/u/Milk)
#### Post date: [May 26, 2023, 9:57am UTC](https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281/3 "2023-05-26T09:57:00Z")

</div>

Ah, there is an error;

```plaintext
ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "shared_edit_revisions" does not exist
LINE 8: WHERE a.attrelid = '"shared_edit_revisions"'::regclass
                            ^
)
app/controllers/application_controller.rb:387:in `block in with_resolved_locale'
app/controllers/application_controller.rb:387:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:361:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:198:in `call'

Failed to handle exception in exception app middleware : PG::UndefinedTable: ERROR: relation "shared_edit_revisions" does not exist
LINE 8: WHERE a.attrelid = '"shared_edit_revisions"'::regclass

```

---

<div class="post-metadata">

### Author: ![Milk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/milk/32/308674_2.png) [@Milk](https://meta.discourse.org/u/Milk)
#### Post date: [May 26, 2023, 10:01am UTC](https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281/4 "2023-05-26T10:01:40Z")

</div>

discourse-calendar  
discourse-checklist  
discourse-fontawesome-pro  
discourse-footnote  
ldap  
discourse-shared-edits  
discourse-spoiler-alert  
styleguide

There is also the log error

```plaintext
Job exception: PG::UndefinedTable: ERROR: relation "discourse_calendar_post_event_dates" does not exist
LINE 8: WHERE a.attrelid = '"discourse_calendar_post_event_dates"':...
                            ^

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 26, 2023, 1:54pm UTC](https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281/5 "2023-05-26T13:54:49Z")

</div>

I’m not sure why it wouldn’t have those? Is this a [standard install](https://meta.discourse.org/t/142537?silent=true)?

It may be worth trying a `./launcher rebuild app` to see if that smooths things out. 🤞

---

<div class="post-metadata">

### Author: ![Milk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/milk/32/308674_2.png) [@Milk](https://meta.discourse.org/u/Milk)
#### Post date: [May 26, 2023, 7:28pm UTC](https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281/6 "2023-05-26T19:28:34Z")

</div>

No, sorry for not specifying, I installed Discourse through the turnkey method that YunoHost uses.

[GitHub - YunoHost-Apps/discourse\_ynh: Discourse package for YunoHost · GitHub](https://github.com/YunoHost-Apps/discourse_ynh) is the YH repo for Discourse integration.

I followed the plugin install instructions at [GitHub - YunoHost-Apps/discourse\_ynh: Discourse package for YunoHost · GitHub](https://github.com/YunoHost-Apps/discourse_ynh#install-plugins)

I’ve created an issue over there, because I’m guessing installing an official plugin should be fairly simple, and it’s their method will be incorrect in some way. [Internal server error when trying to use official Shared Edits plugin · Issue #151 · YunoHost-Apps/discourse\_ynh · GitHub](https://github.com/YunoHost-Apps/discourse_ynh/issues/151)

Thanks you your help anyhow.

P.S. There is no `./launcher` with the install via YunoHost.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 26, 2023, 9:23pm UTC](https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281/7 "2023-05-26T21:23:03Z")

</div>

I’m not familiar with this method (and only the [standard install](https://meta.discourse.org/t/142537?silent=true) is officially supported), but it looks like it ships with an out of date `Stable` version:

> **Shipped version:** 2.8.13~ynh1

If you can, you may want to try a [standard install](https://meta.discourse.org/t/142537?silent=true) instead so you can take advantage of all the latest plugins and features. 👍 (and access more support from people here 🙂)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 19, 2023, 11:22am UTC](https://meta.discourse.org/t/enable-shared-edits-gives-internal-server-error-message/266281/8 "2023-08-19T11:22:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
