New Install - Plugin Page Freezes
-
@sampo2910 you don't need a plugin for email. You can use the built in SMTP option instead.
I'll see if I can reproduce.
-
@phenomlab I doubt that sendmail has anything to do with the plugin page hanging the browser.
@Sampo2910 I haven't been able to reproduce yet on Firefox 92.0 or Chromium 92.0 on Linux. What version of Firefox are you using? You're on NodeBB 1.18.3 right?
-
@pitaj Well it is not working with default built in then.
I input my smtp settings and that was the problem i got. Those smtp settings worked previously.
And update again...It is NO LONGER WORKING ON MS Edge. Just tried again.
No idea what this is.
This was in logs regarding email:
Error: The sendmail executable could not be found, please ensure it is installed and executable by the user running NodeBB.
at Emailer.sendToEmail (/home/smiley/nodebb/src/emailer.js:337:10)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Emailer.send (/home/smiley/nodebb/src/emailer.js:259:2)
at async UserEmail.sendValidationEmail (/home/smiley/nodebb/src/user/email.js:134:3)
at async Email.test (/home/smiley/nodebb/src/socket.io/admin/email.js:37:4)
at async onMessage (/home/smiley/nodebb/src/socket.io/index.js:164:19) -
@sampo2910 did you set up the built in SMTP emailer? You have to enable it and provide account details.
Is your forum available publicly? Have you tried a different computer?
-
@pitaj Firefox was a test. I dont use it. I just downloaded the latest to try it. I use latest version as Chrome by default.
But whatever browser I use it is the same. Problem must lie elsewhere.
Regarding email and saying dont need to install anything why is that in the logs
'The sendmail executable could not be found, please ensure it is installed and executable ' Permissions? And can i get 1 reputation point please lol....I have to keep waiting to post
The forum does not crash when it is hanging...I have to close the page wait a minute and then go in again. It is only that 'find plugins page' NO WHERE else.
SMTP settings have all the account details all set up. Like i said it worked before.
-
@sampo2910 You may find some insights here:
NodeBB Email - Options
Initial draft for gotwf nodebb email how-to two cents worth. Confusion over email seems to be a recurring issue so I thought I'd take a stab at culling and...
NodeBB Community (community.nodebb.org)
And maybe here:
NodeBB Email - Postfix Null Client
Who Is This Document For? Well... like most things.... it depends.... If one or more of following shoes fits: Just want to get NodeBB up and running with mi...
NodeBB Community (community.nodebb.org)
Good luck o/
-
@sampo2910 sendmail isn't necessary if you have SMTP set up. I just checked. If you share a screenshot of your emails settings page I can help you more.
That's a different issue we can figure out later though. Let's focus on the problem at hand. You haven't really been answering my questions, please answer all questions I ask or I won't have enough information to help you.
- Are you on NodeBB 1.18.3?
- Is your forum available through the internet?
- Have you tried using a different computer?
-
@gotwf sendmail is default if SMTP is not enabled. (which it by default is not)
-
@pitaj "sendmail" the builtin nodejs stuff or "sendmail" the executable, as in Postfix drop in replacement? Postfix made things easy to replace Sendmail, the defacto default executable bitd in that regard but using the same name has led to confusion a time or two... Heck, I am not even sure I was clear enough in that howto. Maybe I need to reword some of that?
I think you are using "sendmail" to reference the NodeBB built in. Just to clarify for those who may come to this thread later.
-
@gotwf "sendmail" is an executable on your system. By default (when SMTP transport is disabled and there is no emailer plugin installed), NodeBB uses a sendmail transport provided by the nodemailer package. The sendmail transport will call the sendmail executable on the system, if it exists.
I'm not referring to some NodeBB internal system. Generally we call the system in NodeBB which handles sending emails the "emailer".
-
@pitaj Hmm... Does Debian still ship with Exim by default? Does Exim rename their executable to sendmail? I'd thought not but been a while since I used it. I think OP is using Ubuntu (wh/includes Postfix's sendmail executable as shipped). But they maybe on Deb? Just to clarify.
Qmail would be another example of a Sendmail daemon replacement. Qmail executable is "qmail". Once upon a time pretty much the defacto replacement for Sendmail. Qmail does not call its executable "sendmail".
Hence, although Postfix has evolved as the MTA of choice over the past couple decades it is not the only option. Options which do not rename their MTA binaries so maybe probing/checking for "sendmail" could be less than robust?
Edit: Yeah, Debian does still include Exim by default https://wiki.debian.org/Exim
-
@pitaj said in New Install - Plugin Page Freezes:
@sampo2910 sendmail isn't necessary if you have SMTP set up. I just checked. If you share a screenshot of your emails settings page I can help you more.
That's a different issue we can figure out later though. Let's focus on the problem at hand. You haven't really been answering my questions, please answer all questions I ask or I won't have enough information to help you.
- Are you on NodeBB 1.18.3?
- Is your forum available through the internet?
- Have you tried using a different computer?
The very first time i set up nodebb i never had this issue at all. I have done same again...(this is 5th time to be sure) but this. Like i said all is fine on whole admin site apart from these two things. Freeze and Mail.
Yes
Yes
Yes -
I also noticed this.
When i use ./nodebb stop should i be able to see the webpage?
Because I can. Even if i clear browser cache etc i still see it. ?
i tried going in ./nodebb dev also and noticed a message - error: NodeBB address in use, exiting...
Is something using the address something happening twice ?
-
This is output from ./nodebb log:
smiley@fmjcod4:~/nodebb$ ./nodebb log
Hit Ctrl-C to exit
Clustering enabled: Spinning up 1 process(es).
2021-09-26T18:50:07.298Z [4567/7357] - info: Initializing NodeBB v1.18.3 http://localhost:4567
2021-09-26T18:50:08.527Z [4567/7357] - info: [socket.io] Restricting access to origin: http://localhost
2021-09-26T18:50:08.748Z [4567/7357] - info: [plugins/spam-be-gone] Settings loaded
2021-09-26T18:50:08.766Z [4567/7357] - info: [api] Adding 0 route(s) toapi/v3/plugins
2021-09-26T18:50:08.778Z [4567/7357] - info: [router] Routes added
2021-09-26T18:50:08.780Z [4567/7357] - info: NodeBB Ready
2021-09-26T18:50:08.781Z [4567/7357] - info: Enabling 'trust proxy'
2021-09-26T18:50:08.782Z [4567/7357] - info: NodeBB is now listening on: 0.0.0.0:4567 -
Your screenshot doesn't include this toggle:
Do you have it enabled as shown in the picture?When i use ./nodebb stop should i be able to see the webpage?
No. You will need to use the command line to manually kill all node processes. Then you can
./nodebb start
it back up. -
@sampo2910 Okay, from the screenshot posted above, you are relaying NodeBB email through a dedicated SMTP executable. If whatever that is, let us assume Postfix, the SMTPD (SMTP Daemon) should be logging attempted connections, typically to /var/log/maillog.
Presuming you have access to the box where that daemon is running, tail that puppy:
tail -f /var/log/maillog
Then repeat whatever you do in NodeBB to trigger the NodeBB log smtp connection refused error. Observe the tail'd smtp daemon log. It should provide more detailed insight as to why the connection is being rejected. If not, increase "verbosity" of the postfix sendmail daemon and reload the config. Iirc you can even do from command line temporarily w/o having to edit the conf file but I forget the command off the top of my head. I think man postconf should get you there.
Good luck o/
P.S.; The above is predicated on you having selected Custom and then obfuscating your actual config via the smtp.mail.com example in your screenshot above. If not, see @PitaJ comment above.
-
@pitaj said in New Install - Plugin Page Freezes:
Your screenshot doesn't include this toggle:
Do you have it enabled as shown in the picture?When i use ./nodebb stop should i be able to see the webpage?
No. You will need to use the command line to manually kill all node processes. Then you can
./nodebb start
it back up.OMG how stupid do I feel now with the mail 'problem'. It was off! I toggled to on and email success and it came through.
In my defence I was also thinking that needed to be on if i used Gmail,Yahoo i.e. external email server. Of course how you read it. Happy that that side of live is working.
Just this freezing problem on find plugins. I guess I have the main ones I need but maybe something else in there I would like also. But for now at least I can open up to registration etc with email working.