-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
TemplateNotFound: notif_mail.html in Matrix Synapse homeserver on Ubuntu 16.04 #2331
Comments
I also try to fill full path from root to file:
But the error is same:
Moving files to /etc/matrix-synapse/res/templates/notif_mail2.html - not solve problem. |
If I try to fill full path into template_dir:
I got another error:
Template files now contain only one string "test" with latin symbols, no other symbols present. |
ran into this as well after upgrading synapse to 0.22.1. |
Same here, used to work fine with 0.21.1. Here's the log :
|
Same here after upgrading Ubuntu 14.04 LTS and rebooting today Homeserver.yaml says: However there is no such directory (anymore?) and these files to not exist on the whole filesystem. |
Same issue here, v0.22.1 |
Actually you just need to manually specify the path to res/templates from the config file and you should be good to go. If you're using the unofficial docker image then clone the project's repository and specify its path (email.template_dir). Quite an easy fix. Though I don't know if this could be related to this issue (from synapse's log): |
@Darlelet which system did you use and how you specify path to res/templates files - full or relative path? In 2 comment I already try to specify full path, but got |
@MurzNN Docker image using latest Debian version (see docker-matrix), and I did specify the full path to it. |
Can confirm this, the res/templates folder simply doesn't exist after I upgraded via pip, so it's probably missing in the pip release tarball as well? |
I ran into this as well as late as today (see date of comment). and then I found that |
The template folder is also missing from the the debian package. Regarding the dependencies, my system was missing python-bleach, python-jinja2 was installed though.
Could you please share your obfuscated config ? Never read about the option |
Just upgraded to synapse version 0.31.1-1 via apt and decided to try the email integration again. Here's what I had to do to get the server back up and running:
It got the server back up and running, but I have not yet received any email (not really sure what the trigger is). |
I tried to use the official container and once I tried to configure email notification I was hit by this bug, mainly enabling them required me to specify a template dir, which didn't exist. So I was forced to clone 6 files and to put them inside docker data directory.
This is far from being a good user experience. I would expect to to be forced to clone files from source in order to enable email notifications. The default path used in the example of "res/templates" does mot work with the container. @leprasmurf Thanks for posting the workaround. Not sure if is enough but it sorted at least the visible errors. Now I do hope that the pip requirements are already installed in the container as I do want to avoid having to build my own container on top in order to make it work. |
@ssbarnea (or anyone else for that matter) did you ever get email notifications to send? I have followed basically the same steps for a server deployed via Docker (https://github.com/AVENTER-UG/docker-matrix). Now the server will start and run fine but I am not seeing any emails and I am not seeing any errors in the logs. But, I do not get any email notifications. (Tried sending messages to a user with email notifications enabled that had been offline for > 2m and then waited >2m to see if the emails were sent and nothing came...) |
I have a problem as well but at first I would like to know: Is it mandatory to set an Identity server to provide a mail address? Somehow I can not set a mail address in settings when I've removed the preset identity server logging in. Edit: According to https://matrix.to/#/!HsxjoYRFsDtWBgDQPh:matrix.org/$15423781942979WfmVZ:kamax.io it is not possible to set mail addresses without providing an identity server:
|
The original cause of this bug seems to have been that the reporter didn't point the configuration to the right directory. If you have another bug, please open a new issue. If you'd like support setting up your homeserver, please ask in |
oh, and if your problem is that synapse can't find the email templates, please do let us know how you installed synapse. We can't guess! |
Sorry @richvdh that I misused this thread (actually I hate idling around in chats waiting for help because of known reasons). But I will give it a try again. Let me leave a copy of my request here because I found this issue looking for a solution (so maybe others will have the same problem as well): Edit: Opened a new issue in #4195 because this one is closed. |
I try to configure email notifications in Matrix Synapse homeserver on Ubuntu 16.04. Matrix server is on version 0.21.1-1.
Here is my config part:
And after trying enable notifications in some user, I see in logs:
How I can debug in which path Synapse really try to find this file?
The text was updated successfully, but these errors were encountered: