Hacker News new | ask | show | jobs
by tedchs 955 days ago
I tried signing up and got an error:

Template render error: (/root/email.radio_admin/views/applied.njk) [Line 32, Column 54] Error: Unable to call `date["getFullYear"]`, which is undefined or falsey at Object._prettifyError (/root/email.radio_admin/node_modules/nunjucks/src/lib.js:32:11) at /root/email.radio_admin/node_modules/nunjucks/src/environment.js:464:19 at Template.root [as rootRenderFunc] (eval at _compile (/root/email.radio_admin/node_modules/nunjucks/src/environment.js:527:18), <anonymous>:21:3) at Template.render (/root/email.radio_admin/node_modules/nunjucks/src/environment.js:454:10) at /root/email.radio_admin/node_modules/nunjucks/src/environment.js:301:27 at createTemplate (/root/email.radio_admin/node_modules/nunjucks/src/environment.js:254:9) at handle (/root/email.radio_admin/node_modules/nunjucks/src/environment.js:265:11) at /root/email.radio_admin/node_modules/nunjucks/src/environment.js:276:9 at next (/root/email.radio_admin/node_modules/nunjucks/src/lib.js:258:7) at Object.asyncIter (/root/email.radio_admin/node_modules/nunjucks/src/lib.js:263:3)

1 comments

Fixed! Also it no longer runs in the root directory (if someone points that out later).
That it was running from the root directory.

Tell me you hadn't planned to keep it in /root/?

If anyone uploaded a malicious file, they could potentially gain access to the whole system.

Especially as this is an email client that allows attachments.

I haven’t planned to keep it in /root. It ran as a separate user, but in that directory. Plus that thing only contains the homepage and the form, not emails, accounts, attachments, etc. That’s also ran as a separate user (as mailcow is dockerised)