YunoHost-Apps / akkoma_ynh

Social media based on ActivityPub, fork of Pleroma
https://akkoma.social/
GNU Affero General Public License v3.0
15 stars 6 forks source link

[Testing] Wrong path in config #23

Closed bugsysop closed 1 year ago

bugsysop commented 1 year ago

In Admin FE these tow config parameters are wrong:

Path to Upload directory
akk-conf-bug-1-2023-02-14-AdminFE

Path to Modules
akk-conf-bug-2-2023-02-14-AdminFE

/var/lib/akkoma/ must be replaced with /home/yunohost.app/akkoma/

lapineige commented 1 year ago

Thank you for catching these !

bugsysop commented 1 year ago

I think the problem with upload directory is somewhere in the config.exs file generated at YNH install of Akkoma

From /var/akkoma/config.exs

config : pleroma, :instance, static_dir: "/home/yunohost.app/akkoma/static"
config : pleroma, Pleroma.Uploaders.Local, uploads: "/home/yunohost.app/akkoma/uploads"

Sorry I have no time to search more now...

lapineige commented 1 year ago

You mean it's already properly configured in that file but it's not the value shown in the admin UI ? Then we are in bigger trouble that I thought...

bugsysop commented 1 year ago

uploads is proprely configured… But not the modules path… I realy don't understand where is the problem with uploads.

In my Pleroma install (production, upgraded to last version) the uploads path is correct.
But not the module one… because is not set in config.exs

lapineige commented 1 year ago

If you change them (both settings) from the web admin, what happens in the config.exs file ?

By the way do you know what is the use of that module folder ? For upload, I understood it's for media attachements.

bugsysop commented 1 year ago

No synchronisation from DB in config.exs Note: it's why in case of upgrade you loose some customizations done in Admin FE

For the modules if I remember well there are not used in OTP release if you don't make your own buil of Pleroma/Akkoma

lapineige commented 1 year ago

Note: it's why in case of upgrade you loose some customizations done in Admin FE

Can we fix this ?

For the modules if I remember well there are not used in OTP release if you don't make your own buil of Pleroma/Akkoma

Oh ok, so we don't care ?

lapineige commented 1 year ago

I can test a change in admin UI, as it is buggy since upgrade to 3.6.0 (same as https://github.com/YunoHost-Apps/akkoma_ynh/pull/21#issuecomment-1430338255).

I have the proper uploads folder settings in the config file too.

joeldebruijn commented 1 year ago

Same here, since upgrading tot 3.6.0, the Pleroma Admin front-end didnt show anything. After logging out, rebooting server and restarting Akkoma service, I still cant login: 20230219-080911-Admin FE

Not sure its the same issue, but looked something similar so posted as a reply instead as separate issue. The 3 Akkoma accounts on the server are happy tooting tho and still works.

lapineige commented 1 year ago

I can't login with the Log in button too, it only works with PleromaFE. Not sure it was the case before.

joeldebruijn commented 1 year ago

In my case via PleromaFE I still get errors: image

lapineige commented 1 year ago

Yes, same for me. I don't understand where they are coming from.

lapineige commented 1 year ago

People with admin UI issues like this 404 : this is because the frontend is not up-to-date.

Starting with #28, it will be upgraded during each upgrade. You could try it now, wait for it, or fix it right now with : cd /var/www/akkoma/live && sudo -u akkoma bin/pleroma_ctl frontend install admin-fe --ref stable.

lapineige commented 1 year ago

@bugsysop the original bug you mentioned is fixed in my instance manually in my instance, from the Admin FE. I don't think we can fix that during upgrades. At least I don't know how to change those parameters from the command line.

For now on, I added the correct configuration in #28, for install only, thanks to one Akkoma maintainer help.

Thanks a lot for your help.