HenryQW / Awesome-TTRSS

🐋 Awesome TTRSS, a powerful Dockerised all-in-one RSS solution.
http://ttrss.henry.wang
MIT License
2.44k stars 494 forks source link

[BUG] Extension missing: openssl #382

Closed tensor5g closed 2 years ago

tensor5g commented 2 years ago

Describe the bug When attempting to send a test email, I get the following error: "Extension missing: openssl". Full log below.

Deployment method

Deployment environment

To Reproduce I set the following environment variables:

Error logs

Error sending mail:  Extension missing: openssl
1. classes/mailer.php(61): user_error(Error sending mail:  Extension missing: openssl)
2. plugins.local/mailer_smtp/init.php(101): set_error( Extension missing: openssl)
3. classes/mailer.php(37): hook_send_mail({Mailer}, [{"to_name":"","to_address":"xxx@xxx.xxx","subject":"Test message from tt-rss","message":"This message confirms that tt-rss can send outgoing mail."})
4. classes/pref/system.php(25): mail([{"to_name":"","to_address":"xxx@xxx.xxx","subject":"Test message from tt-rss","message":"This message confirms that tt-rss can send outgoing mail."})
5. backend.php(136): sendTestEmail()
HenryQW commented 2 years ago

@tensor5g can you try wangqiru/ttrss:dev and see if the problem is solved?

tensor5g commented 2 years ago

@HenryQW Thank you, that resolves the issue! However, another problem is that plugins do not seem to persist. Is there a volume I can mount to persist them? Or can it be scripted to install certain plugins on container start? Otherwise I will need to remember to install the smtp plugin every time I update this container.

HenryQW commented 2 years ago

You can persist them by mapping the plugins.local folder:

volumes:
    - /somewhere/:/var/www/plugins.local

Then simply download plugins into /somewhere.

This however will wipe every plugin that comes with this repo, as these plugins are downloaded into /var/www/plugins.local, but overridden by an empty folder mapped by you..