Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.12k stars 1.52k forks source link

LDAP plugin install fails #6139

Closed lapineige closed 11 months ago

lapineige commented 11 months ago

Describe the current behavior

During normal installation in Yunohost, the LDAP plugin fails to install: https://github.com/YunoHost-Apps/peertube_ynh/pull/397#issuecomment-1869497725

Steps to reproduce

  1. Install Yunohost package

Describe the expected behavior

Plugin install normally

Additional information

Chocobozzz commented 11 months ago

Hello,

I'm sorry but I don't think it's a PeerTube bug. Maybe the db is not initialized yet when the plugin is installed, or the installation command is missing the appropriate env variables (NODE_CONFIG_DIR/NODE_ENV)

lapineige commented 11 months ago

Ok, we had a few reason to believe it was the case (seems to had happened in the past), but nothing very sure. Thanks for the hint, we will investigate this :slightly_smiling_face:

For the record, NODE_CONFIG_DIR and NODE_ENV seems to be set correctly https://github.com/Yunohost-Apps/peertube_ynh/blob/master/scripts/install#L211C160-L211C160

lapineige commented 11 months ago

After some discussion with people more savy than me on that topic, it seems that indeed we are not launching the service in a correct way here https://github.com/Yunohost-Apps/peertube_ynh/blob/master/scripts/install#L201, it might be still initializing the database… In my case it was on slow hardware (HDD + Raspberry Pi 3), so might be it !

Thanks a lot for you help :)

lapineige commented 11 months ago

It was indeed a database initialization issue ! Solved here : https://github.com/YunoHost-Apps/peertube_ynh/pull/400