Forum crash on profile image upload
-
Hello, im using nodebb-plugin-amazons3 to store images on the forum - and they work fine.
But when im trying to upload PNG image to my profile - server is crash.Is it problem with amazonS3 plugin ?
2015-12-06T14:42:28.245479+00:00 app[web.1]: 6/12 17:42 [3] - ←[32minfo←[39m: [plugins/nodebb-plugin-amazons3] Starting upload image...
2015-12-06T14:42:28.251153+00:00 app[web.1]: 6/12 17:42 [3] - ←[31merror←[39m: MongoError: server db.wildterra.ru:27017 sockets closed
2015-12-06T14:42:28.248099+00:00 app[web.1]: 6/12 17:42 [3] - ←[31merror←[39m: TypeError: Cannot read property 'replace' of undefined
2015-12-06T14:42:28.251156+00:00 app[web.1]: at Server.destroy (/app/node_modules/mongodb-core/lib/topologies/server.js:676:47)
2015-12-06T14:42:28.251157+00:00 app[web.1]: at Server.close (/app/node_modules/mongodb/lib/server.js:367:17)
2015-12-06T14:42:28.248103+00:00 app[web.1]: at /app/src/plugins/hooks.js:97:12
2015-12-06T14:42:28.248102+00:00 app[web.1]: at Object.plugin.exports.uploadImage [as method] (/app/node_modules/nodebb-plugin-amazons3/index.js:199:50)
2015-12-06T14:42:28.251157+00:00 app[web.1]: at Db.close (/app/node_modules/mongodb/lib/db.js:333:19)
2015-12-06T14:42:28.248104+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:375:13
2015-12-06T14:42:28.248105+00:00 app[web.1]: at iterate (/app/node_modules/async/lib/async.js:262:13)
2015-12-06T14:42:28.251158+00:00 app[web.1]: at Object.module.close (/app/src/database/mongo.js:237:6)
2015-12-06T14:42:28.248106+00:00 app[web.1]: at Object.async.forEachOfSeries.async.eachOfSeries (/app/node_modules/async/lib/async.js:281:9)
2015-12-06T14:42:28.251159+00:00 app[web.1]: at shutdown (/app/app.js:305:28)
2015-12-06T14:42:28.251160+00:00 app[web.1]: at emitOne (events.js:77:13)
2015-12-06T14:42:28.251160+00:00 app[web.1]: at process.<anonymous> (/app/app.js:176:3)
2015-12-06T14:42:28.248108+00:00 app[web.1]: at Object.Plugins.fireHook (/app/src/plugins/hooks.js:70:5)
2015-12-06T14:42:28.248107+00:00 app[web.1]: at Object.async.inject.async.foldl.async.reduce (/app/node_modules/async/lib/async.js:374:15)
2015-12-06T14:42:28.248107+00:00 app[web.1]: at fireFilterHook (/app/src/plugins/hooks.js:89:9)
2015-12-06T14:42:28.251161+00:00 app[web.1]: at process.emit (events.js:169:7)
2015-12-06T14:42:28.251162+00:00 app[web.1]: at process._fatalException (node.js:232:26)
2015-12-06T14:42:28.248110+00:00 app[web.1]: at fn (/app/node_modules/async/lib/async.js:741:34)
2015-12-06T14:42:28.248109+00:00 app[web.1]: at async.waterfall.url (/app/src/user/picture.js:178:21)
2015-12-06T14:42:28.251337+00:00 app[web.1]: 6/12 17:42 [3] - ←[31merror←[39m: MongoError: server db.wildterra.ru:27017 sockets closed
2015-12-06T14:42:28.251340+00:00 app[web.1]: at Server.close (/app/node_modules/mongodb/lib/server.js:367:17)
2015-12-06T14:42:28.251339+00:00 app[web.1]: at Server.destroy (/app/node_modules/mongodb-core/lib/topologies/server.js:676:47)
2015-12-06T14:42:28.248207+00:00 app[web.1]: at Object.plugin.exports.uploadImage [as method] (/app/node_modules/nodebb-plugin-amazons3/index.js:199:50)
2015-12-06T14:42:28.251341+00:00 app[web.1]: at Object.module.close (/app/src/database/mongo.js:237:6)
2015-12-06T14:42:28.248205+00:00 app[web.1]: TypeError: Cannot read property 'replace' of undefined
2015-12-06T14:42:28.248208+00:00 app[web.1]: at /app/node_modules/async/lib/async.js:375:13
2015-12-06T14:42:28.248209+00:00 app[web.1]: at Object.async.forEachOfSeries.async.eachOfSeries (/app/node_modules/async/lib/async.js:281:9)
2015-12-06T14:42:28.248210+00:00 app[web.1]: at Object.async.inject.async.foldl.async.reduce (/app/node_modules/async/lib/async.js:374:15)
2015-12-06T14:42:28.248207+00:00 app[web.1]: at /app/src/plugins/hooks.js:97:12
2015-12-06T14:42:28.248209+00:00 app[web.1]: at iterate (/app/node_modules/async/lib/async.js:262:13)
2015-12-06T14:42:28.251340+00:00 app[web.1]: at Db.close (/app/node_modules/mongodb/lib/db.js:333:19)
2015-12-06T14:42:28.251344+00:00 app[web.1]: at emitOne (events.js:77:13)
2015-12-06T14:42:28.251345+00:00 app[web.1]: at process.emit (events.js:169:7)
2015-12-06T14:42:28.248212+00:00 app[web.1]: at fn (/app/node_modules/async/lib/async.js:741:34)
2015-12-06T14:42:28.248211+00:00 app[web.1]: at fireFilterHook (/app/src/plugins/hooks.js:89:9)
2015-12-06T14:42:28.248211+00:00 app[web.1]: at Object.Plugins.fireHook (/app/src/plugins/hooks.js:70:5)
2015-12-06T14:42:28.251343+00:00 app[web.1]: at shutdown (/app/app.js:305:28)
2015-12-06T14:42:28.251346+00:00 app[web.1]: at process._fatalException (node.js:232:26)
2015-12-06T14:42:28.251344+00:00 app[web.1]: at process.<anonymous> (/app/app.js:176:3)
2015-12-06T14:42:28.248212+00:00 app[web.1]: at async.waterfall.url (/app/src/user/picture.js:178:21)
2015-12-06T14:42:28.248536+00:00 app[web.1]: 6/12 17:42 [3] - ←[32minfo←[39m: [app] Shutdown (SIGTERM/SIGINT) Initialised.And second that image preview immediately after upload doesn't work on Heroku:
2015-12-06T12:02:14.626800+00:00 app[web.1]: 6/12 15:02 [3] - ←[32minfo←[39m: [plugins/nodebb-plugin-amazons3] Starting upload image...
2015-12-06T12:02:14.648181+00:00 app[web.1]: 6/12 15:02 [3] - ←[31merror←[39m: unable to delete picture /tmp/E6N7l7gfAITRJkG8D5bXHa_q.jpgCurrent version of forum: 0.9.1
http://forum.playwildterra.com/