Closed csolisr closed 1 year ago
I get the same problem, tried to extend writing rights of the pleroma user but that didn't help either. Opened a help subject here too: https://forum.yunohost.org/t/pleroma-several-errors-500-400-mkdir-p/22044
For now I found the following workaround:
/home/yunohost.app/pleroma/static
In good theory this value is already set on the config file, but since the admin tool is also configured to read values from the database, this config value might have been ignored as a result. Wondering if there's a way to set it directly using pleroma_ctl
?
I confirm this work fine!
I just successfully installed a new frontend after changing the static dir
path in the admin WebUI.
In the last Pleroma version you find this option here: Admin Panel > Settings > Frontend
Is that something we could / should change in this package ?
Yes it should be added to the package, I still need to investigate how to configure it from the CLI though.
@csolisr
If we look at the Pleroma config file created by the YNH install script (/etc/pleroma/config.exs
), the path for the static directory is correctly set-up to /home/yunohos.app/pleroma/static
This mean that the error is in the database...
Can we change the default value (stored in DB) for the static ressources with a post-install hook?
To solve the problem from CLI:
1- Login in SSH as admin user
2- Get Root privileges
sudo -s
3- Exec this command
su pleroma -s $SHELL -lc "/var/www/pleroma/live/bin/pleroma_ctl config migrate_to_db"
Note: this command is executed as pleroma
user, to register in the DB the settings inserted in the config file by Yunohost during install (ref. /etc/pleroma/config.exs
).
In other terms, we have now the same path to static dir in DB and in the config file:
/home/yunohos.app/pleroma/static
This can be automated with YNH App install script for Pleroma... ...and solve this issue!
References:
This can be automated with YNH App install script for Pleroma... ...and solve this issue!
So #224 should do it 🙂
Describe the bug
Pleroma for YunoHost does not allow installing or upgrading additional frontends or emoji. This is particularly important because the bundled interface is using a version that hasn't been updated in 9 months at the time of this report.
Context
Steps to reproduce
2.4.4
and the frontend version is commitb13d8f7e
.Request failed with status code 500 - Failed to create the emoji pack directory at /var/lib/pleroma/static/emoji: enoent
". This indicates that the administrator tools might not be honoring the configuration file and are attempting to use the default folder, instead of the one used by YunoHost which is located at/home/yunohost.app/pleroma/static
.Expected behavior
The system should allow installing add-ons directly from the application, but this does not seem to be working.
Logs