NukeRusich / Narodi-Issue-Tracker

Submit issues for Ekunia Narodi; initial import of NodeBB issues.
http://ekunia.com
0 stars 0 forks source link

[CLOSED] Disconnected when trying to upload avatar #4

Closed NukeRusich closed 9 years ago

NukeRusich commented 9 years ago

Issue by andyjessop Wednesday Jun 19, 2013 at 08:08 GMT Originally opened as https://github.com/NodeBB/NodeBB/issues/4


Here's the error:

trying to upload to : /nodebb/public/uploads/photo.png

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)

Edit: upon restart of the app, I can see that the upload did take place successfully

NukeRusich commented 9 years ago

Comment by barisusakli Wednesday Jun 19, 2013 at 13:56 GMT


Hi babaggeii, can you give more details about this? Did you install nodebb on your local machine, on a webserver etc? I tried uploading an avatar on try.nodebb.org and didn't get any errors. Thanks.

NukeRusich commented 9 years ago

Comment by andyjessop Wednesday Jun 19, 2013 at 13:58 GMT


Hi, I installed it on my local ubuntu (12.04) machine. Let me know if you need any more details.

NukeRusich commented 9 years ago

Comment by barisusakli Wednesday Jun 19, 2013 at 14:09 GMT


I am thinking the image resize is failing since you made another report about images being too big. Can you add a console.log('image resize failed'); on this line https://github.com/designcreateplay/NodeBB/blob/master/src/routes/user.js#L169 and see if it gets executed?

NukeRusich commented 9 years ago

Comment by andyjessop Wednesday Jun 19, 2013 at 14:23 GMT


That doesn't get executed.

NukeRusich commented 9 years ago

Comment by andyjessop Wednesday Jun 19, 2013 at 14:26 GMT


Trying an upload again, I get:

trying to upload to : /nodebb/public/uploads/1-bolt-icon.png

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)

NukeRusich commented 9 years ago

Comment by barisusakli Wednesday Jun 19, 2013 at 18:56 GMT


Can you try to run :

sudo apt-get install imagemagick 

and then try again? We use the https://github.com/rsms/node-imagemagick and it requires the CLI tools.