SMTP and Emoji issue after 1.19.2 upgrade
-
I upgraded from 1.19.1 to 1.192. but I'm having trouble sending mail. Also there is a bug in Emojis. Delete the
node_modules
folder and use thenpm install
command to create a new deb, I did the initialization a few times.Error: Connection timeout at SMTPConnection._formatError (/home/nodes/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:784:19) at SMTPConnection._onError (/home/nodes/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:770:20) at Timeout.<anonymous> (/home/nodes/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:229:22) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7) 2022-02-10T06:05:51.506Z [4567/85042] - [31merror[39m: [emoji] Failed to retrieve data for parse ENOENT: no such file or directory, open '/home/nodes/nodebb/node_modules/nodebb-plugin-emoji/build/emoji/table.json' {"code":"ENOENT","errno":-2,"path":"/home/nodes/nodebb/node_modules/nodebb-plugin-emoji/build/emoji/table.json","stack":"Error: ENOENT: no such file or directory, open '/home/nodes/nodebb/node_modules/nodebb-plugin-emoji/build/emoji/table.json'","syscall":"open"} 2022-02-10T06:06:21.115Z [4567/85042] - [31merror[39m: [emoji] Failed to retrieve data for parse ENOENT: no such file or directory, open '/home/nodes/nodebb/node_modules/nodebb-plugin-emoji/build/emoji/table.json' {"code":"ENOENT","errno":-2,"path":"/home/nodes/nodebb/node_modules/nodebb-plugin-emoji/build/emoji/table.json","stack":"Error: ENOENT: no such file or directory, open '/home/nodes/nodebb/node_modules/nodebb-plugin-emoji/build/emoji/table.json'","syscall":"open"}
NodeBB İnfo:
version: 1.19.2 Node ver: v16.13.2 git hash: ded19254ace8515a7a9bc02d06f326f86b2ed6ee database: mongo version: 5.0.6 engine: wiredTiger
NodeBB Plugin:
Active plugins: * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled) * [email protected] (installed, disabled) * [email protected] (installed, disabled) * [email protected] (installed, enabled)
-
@kurulumu-Net Same issue for me sadly.
-
https://ghoozt.com/topic/69/how-to-fix-failed-to-load-emoji-error-2
hahaha let's get some traffic -
@fffddd-dfeeedd This worked
The problem still persists in sending mail. I am using Mailgun and trying to send mail with SMTP in ACP.
-
@fffddd-dfeeedd Thanks for this. Whilst it fixes the emoji applet itself, it doesn't resolve the auto conversion in posts when using ASCII symbols. The below is still shown in the logs
2022-02-10T12:53:50.558Z [4567/287038] - error: [plugins] Error executing 'static:app.load' in plugin 'nodebb-plugin-emoji'
-
@kurulumu-Net sorry i don't know that
-
@phenomlab I replied quickly but the problem is not solved. I'm having the same problem.
-
did you do the same with the active options in the picture
-
@phenomlab Having trouble sending mail? does not send test mail.
-
@fffddd-dfeeedd Yeah. Tapping the emoji icon in the text editor opens the emoji box but there are no emojis
-
@kurulumu-Net i am using 1.19.2 and it worked for me sorry
-
@fffddd-dfeeedd Yes, it works for me also (in the sense of the emojis appearing in the applet) but it still fails with ASCII conversions.
-
Have you tried rebuilding emoji assets in the emoji ACP page?
-
I have the same problem but rebuild assets seems good for me :
-
Am I the only one not sending account confirmation mail to users in 1.19.2?
-
@kurulumu-Net no. I'm also sending a variety of emails to users with no issues and am running 1.19.2
-
@phenomlab After upgrading to 1.19.2, I see the following in the logs. I wonder why?
The SMTP information is correct.2022-02-12T21:10:25.290Z [4567/131042] - [31merror[39m: admin.email.test Error: Connection timeout at SMTPConnection._formatError (/home/nodes/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:784:19) at SMTPConnection._onError (/home/nodes/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:770:20) at Timeout.<anonymous> (/home/nodes/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:229:22) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7)
In 1.19.1, I was sending mail (via Mailgun) with 465 ports and encryption. It was working. In 1.19.2 this did not work. Now I can send mail via port 587 and StarTLS. But I don't understand why it doesn't work on port 465.
-
@kurulumu-Net can you access the port itself via a telnet command such as
telnet server.com 465
? -
@phenomlab I host multiple sites on the same server. Other sites have no issues with using SMTP on port 465. I recently migrated from NodeJS 14 to 16. I think it's caused by this. Is there any extra action required by NodeBB after NodeJS upgrade?