Avatar uploading
-
When I try to upload an avatar it throws this:
{ [Error: bad response on command 'RCPT'] code: 2, smtp: '554 5.7.1 <sonntagskind(at)k0nsl.org>: Relay access denied\n' } info: Attempting upload to: /root/nodebb/public/uploads/2-profileimg.jpg events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34)
Faithfully,
-k0nsl -
That's a little odd -- avatar uploading shouldn't invoke the emailer, and that's what the error seems to be talking about.
Can you try it again and see if it throws the same error?
Yes, it is the same error over & over - crashes the app instance so it must be re-deployed. Not sure why it does this.
Regards,
-k0nsl -
For some reason I suspected it had to do with 'Imgur Client ID', so I went ahead and clear it, leaving it all empty, then I tried to change my avatar and upload a new one. It resulted in this output:
[root@fretzchnid]# info: Attempting upload to: /root/nodebb/public/uploads/2-profileimg.jpg events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) [1]+ Exit 8 node app (wd: ~/nodebb) (wd now: ~/nodebb/public) [root@fretzchnid]#
The folder 'uploads' is owned by root and is chmoded 777. I run this NodeBB as root.
PS:
I should also note that it only crashes the instance (the issue) - the avatar is actually uploaded and applied.Regards,
-k0nsl -
I never thought of running NodeBB as an isolated user because I am letting it run on a development box at the moment, so it was a oversight on my part
When I put it on the production box later on I will run it isolated.Thanks for looking into it.
Regards,
-k0nsl