GoToSocial - Changing configuration in the admin panel of yunohost cause the instance to crash

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.17
What app is this about: GoToSocial

Describe your issue

Hi,

I tried the GTS package, and it works fine out of the box. However, when using the administration panel in Ynh, when I change some config and save (any config really it seems, at least I tried 2 times with different config and the 2nd was basic stuffs like lang and character number), it crash my instance with little meaning in the error messages. (on the browser it throw a 502 error).

Also, I had a problem with the /settings and /admin pages, they were blank, but clearing the cache of the whole domain did the trick !
(Clear cookies and site data in Firefox | Firefox Help)

For now I just will reload a previous save to use the instance but I can try to debug the problem if needed.

Share relevant logs or error messages

Is there a way to change the configuration without having to re-change it at each update, without this interface then ?

Hello @alype
You can edit this file : /var/www/go-to social/config.yaml
See this thread:

Hello @otm33 ,

My problem is that there is a warning in the start of the file :

# ⚠️ IMPORTANT WARNING: do NOT edit this config file by hand,
# else your modifications will be ERASED at each update of the GTS package!
# Instead, use the config panel in your web admin interface:
# Applications ➡️ GoToSocial ➡️ Config panel ➡️ do your config edit ➡️ Save
# Most of the relevant settings are available in the config panel, if you're
# missing one, open an issue: https://github.com/YunoHost-Apps/gotosocial_ynh/issues

So I was asking if there was a way to keep the changes even after an upgrade ^^’

I don’t know… Some settings, like languages, persist after an update, but others disappear and revert to their default values…
Modifications made via the config panel also seem to be copied into the settings.yml file…
Overall, the behavior is quite confusing.

There seems to be a bug in the way the config panel handles the list of languages. You may tweak the file manually (it’s on line 322), follow the format : instance-languages: ["fr", "en-gb"] for example.

I’ll report the bug in the package issue tracker. (Instance language is bugged in the config panel · Issue #193 · YunoHost-Apps/gotosocial_ynh · GitHub)

Yes, there is :

1 Like