image upload issues
-
@sweetp try running
npm install
andnpm rebuild
-
What was the output of
npm rebuild
? -
here's the full output:
https://gist.github.com/sweetppro/9521a6127257664c956c69b1b4f570e2I then also
chown
the NodeBB directory, then:systemctl stop nodebb systemctl start nodebb
I have also update to NodeBB v1.1.2 and still have the same issue
-
Can you try
npm rebuild --build-from-source
-
When you run any of these commands, please include the command output! Just saying "it didn't work" doesn't help anyone.
-
ah, I didn't post, because it's virtually identical to the previous output:
https://gist.github.com/sweetppro/e78341ccb6f21fbc2838c2e6ab534665 -
I finally got the error fixed.
here's what happened, I am running a Plesk Onyx server, and installed the NodeJS update according to this guide:
https://stackoverflow.com/questions/46755352/install-additional-node-versions-in-plesk-onyxAnd while everything looked good within Plesk, when I ran the command:
node -v
the old v8.9.1 of NodeJS would show as being current...
so all I did was this:
nvm use 10.15 npm install npm rebuild
now everything is finally running just fine again
-
I have similar error.
When an user try to upload an image the server respond with 503 error.
I have started nodebb with nodebb dev and I get this error:019-02-11T15:41:06.941Z [1502] - error: message=/lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /opt/app/node_modules/sharp/build/Release/../../vendor/lib/libpng16.so.16), stack=Error: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /opt/app/node_modules/sharp/build/Release/../../vendor/lib/libpng16.so.16) at Object.Module._extensions..node (module.js:664:18) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/app/node_modules/sharp/lib/constructor.js:10:15) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/app/node_modules/sharp/lib/index.js:3:15) at Module._compile (module.js:635:30) 2019-02-11T15:41:06.942Z [1502] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. io: 2 emit [ 'disconnecting', 'transport error' ] io: 2 emit [ 'disconnect', 'transport error' ] io: 2 emit [ 'disconnecting', 'transport error' ] io: 2 emit [ 'disconnect', 'transport error' ] 2019-02-11T15:41:06.949Z [1502] - info: [app] Web server closed to connections. 2019-02-11T15:41:06.952Z [1502] - info: [app] Database connection closed. 2019-02-11T15:41:06.952Z [1502] - info: [app] Shutdown complete. [cluster] Child Process (1502) has exited (code: 1, signal: null) [cluster] Spinning up another process...
Can you help me plz?
-
@Alvaro5 what have you tried?
What version of nodebb, nodejs, npm, database?
-
-
Have you tried upgrading to Node 10?
Have you tried any of the commands suggested previously in this topic?
-
What commands did you try exactly, and what were the outputs of those commands?
-
i have tried npm i and npm rebuild and the output seems to be ok.
This is the last part (I can't get entire output):
mongodb-core@2.1.20 /opt/app/node_modules/mongodb-core bson@1.0.9 /opt/app/node_modules/bson require_optional@1.0.1 /opt/app/node_modules/require_optional resolve-from@2.0.0 /opt/app/node_modules/resolve-from readable-stream@2.2.7 /opt/app/node_modules/connect-mongo/node_modules/readable-stream buffer-shims@1.0.0 /opt/app/node_modules/buffer-shims process-nextick-args@1.0.7 /opt/app/node_modules/connect-mongo/node_modules/process-nextick-args string_decoder@1.0.3 /opt/app/node_modules/connect-mongo/node_modules/string_decoder connect-multiparty@2.2.0 /opt/app/node_modules/connect-multiparty http-errors@1.7.1 /opt/app/node_modules/connect-multiparty/node_modules/http-errors toidentifier@1.0.0 /opt/app/node_modules/toidentifier multiparty@4.2.1 /opt/app/node_modules/multiparty fd-slicer@1.1.0 /opt/app/node_modules/fd-slicer pend@1.2.0 /opt/app/node_modules/pend http-errors@1.7.1 /opt/app/node_modules/multiparty/node_modules/http-errors uid-safe@2.1.5 /opt/app/node_modules/uid-safe random-bytes@1.0.0 /opt/app/node_modules/random-bytes connect-pg-simple@5.0.0 /opt/app/node_modules/connect-pg-simple pg@7.8.0 /opt/app/node_modules/pg buffer-writer@2.0.0 /opt/app/node_modules/buffer-writer packet-reader@0.3.1 /opt/app/node_modules/packet-reader pg-connection-string@0.1.3 /opt/app/node_modules/pg-connection-string pg-pool@2.0.6 /opt/app/node_modules/pg-pool pg-types@2.0.0 /opt/app/node_modules/pg-types pg-int8@1.0.1 /opt/app/node_modules/pg-int8 postgres-array@2.0.0 /opt/app/node_modules/postgres-array postgres-bytea@1.0.0 /opt/app/node_modules/postgres-bytea postgres-date@1.0.3 /opt/app/node_modules/postgres-date postgres-interval@1.1.2 /opt/app/node_modules/postgres-interval pgpass@1.0.2 /opt/app/node_modules/pgpass split@1.0.1 /opt/app/node_modules/split through@2.3.8 /opt/app/node_modules/through semver@4.3.2 /opt/app/node_modules/pg/node_modules/semver connect-redis@3.4.0 /opt/app/node_modules/connect-redis debug@4.1.1 /opt/app/node_modules/connect-redis/node_modules/debug ms@2.1.1 /opt/app/node_modules/connect-redis/node_modules/ms redis@2.8.0 /opt/app/node_modules/redis double-ended-queue@2.1.0-0 /opt/app/node_modules/double-ended-queue redis-commands@1.4.0 /opt/app/node_modules/redis-commands redis-parser@2.6.0 /opt/app/node_modules/redis-parser continuation-local-storage@3.2.1 /opt/app/node_modules/continuation-local-storage async-listener@0.6.10 /opt/app/node_modules/async-listener shimmer@1.2.1 /opt/app/node_modules/shimmer emitter-listener@1.1.2 /opt/app/node_modules/emitter-listener cookie-parser@1.4.3 /opt/app/node_modules/cookie-parser cookie@0.3.1 /opt/app/node_modules/cookie cookie-signature@1.0.6 /opt/app/node_modules/cookie-signature cron@1.6.0 /opt/app/node_modules/cron moment-timezone@0.5.23 /opt/app/node_modules/moment-timezone cropperjs@1.4.3 /opt/app/node_modules/cropperjs csurf@1.9.0 /opt/app/node_modules/csurf csrf@3.0.6 /opt/app/node_modules/csrf rndm@1.2.0 /opt/app/node_modules/rndm tsscmp@1.0.5 /opt/app/node_modules/tsscmp uid-safe@2.1.4 /opt/app/node_modules/csrf/node_modules/uid-safe http-errors@1.5.1 /opt/app/node_modules/csurf/node_modules/http-errors setprototypeof@1.0.2 /opt/app/node_modules/csurf/node_modules/setprototypeof daemon@1.1.0 /opt/app/node_modules/daemon diff@3.5.0 /opt/app/node_modules/diff express@4.16.4 /opt/app/node_modules/express array-flatten@1.1.1 /opt/app/node_modules/array-flatten content-disposition@0.5.2 /opt/app/node_modules/content-disposition encodeurl@1.0.2 /opt/app/node_modules/encodeurl escape-html@1.0.3 /opt/app/node_modules/escape-html etag@1.8.1 /opt/app/node_modules/etag finalhandler@1.1.1 /opt/app/node_modules/finalhandler parseurl@1.3.2 /opt/app/node_modules/parseurl statuses@1.4.0 /opt/app/node_modules/finalhandler/node_modules/statuses fresh@0.5.2 /opt/app/node_modules/fresh merge-descriptors@1.0.1 /opt/app/node_modules/merge-descriptors methods@1.1.2 /opt/app/node_modules/methods path-to-regexp@0.1.7 /opt/app/node_modules/path-to-regexp proxy-addr@2.0.4 /opt/app/node_modules/proxy-addr forwarded@0.1.2 /opt/app/node_modules/forwarded ipaddr.js@1.8.0 /opt/app/node_modules/proxy-addr/node_modules/ipaddr.js range-parser@1.2.0 /opt/app/node_modules/range-parser send@0.16.2 /opt/app/node_modules/send destroy@1.0.4 /opt/app/node_modules/destroy mime@1.4.1 /opt/app/node_modules/send/node_modules/mime statuses@1.4.0 /opt/app/node_modules/send/node_modules/statuses serve-static@1.13.2 /opt/app/node_modules/serve-static statuses@1.4.0 /opt/app/node_modules/express/node_modules/statuses utils-merge@1.0.1 /opt/app/node_modules/utils-merge express-session@1.15.6 /opt/app/node_modules/express-session crc@3.4.4 /opt/app/node_modules/express-session/node_modules/crc express-useragent@1.0.12 /opt/app/node_modules/express-useragent helmet@3.15.1 /opt/app/node_modules/helmet depd@2.0.0 /opt/app/node_modules/helmet/node_modules/depd dns-prefetch-control@0.1.0 /opt/app/node_modules/dns-prefetch-control dont-sniff-mimetype@1.0.0 /opt/app/node_modules/dont-sniff-mimetype expect-ct@0.1.1 /opt/app/node_modules/expect-ct feature-policy@0.2.0 /opt/app/node_modules/feature-policy frameguard@3.0.0 /opt/app/node_modules/frameguard helmet-crossdomain@0.3.0 /opt/app/node_modules/helmet-crossdomain helmet-csp@2.7.1 /opt/app/node_modules/helmet-csp camelize@1.0.0 /opt/app/node_modules/camelize content-security-policy-builder@2.0.0 /opt/app/node_modules/content-security-policy-builder dasherize@2.0.0 /opt/app/node_modules/dasherize platform@1.3.5 /opt/app/node_modules/platform hide-powered-by@1.0.0 /opt/app/node_modules/hide-powered-by hpkp@2.0.0 /opt/app/node_modules/hpkp hsts@2.1.0 /opt/app/node_modules/hsts ienoopen@1.0.0 /opt/app/node_modules/ienoopen nocache@2.0.0 /opt/app/node_modules/nocache referrer-policy@1.1.0 /opt/app/node_modules/referrer-policy x-xss-protection@1.1.0 /opt/app/node_modules/x-xss-protection html-to-text@4.0.0 /opt/app/node_modules/html-to-text he@1.2.0 /opt/app/node_modules/he htmlparser2@3.10.0 /opt/app/node_modules/htmlparser2 domelementtype@1.3.1 /opt/app/node_modules/domelementtype domhandler@2.4.2 /opt/app/node_modules/domhandler domutils@1.7.0 /opt/app/node_modules/domutils dom-serializer@0.1.0 /opt/app/node_modules/dom-serializer domelementtype@1.1.3 /opt/app/node_modules/dom-serializer/node_modules/domelementtype entities@1.1.2 /opt/app/node_modules/entities readable-stream@3.1.1 /opt/app/node_modules/htmlparser2/node_modules/readable-stream optimist@0.6.1 /opt/app/node_modules/optimist minimist@0.0.10 /opt/app/node_modules/minimist wordwrap@0.0.3 /opt/app/node_modules/wordwrap ipaddr.js@1.9.0 /opt/app/node_modules/ipaddr.js jquery@3.3.1 /opt/app/node_modules/jquery jsesc@2.5.1 /opt/app/node_modules/jsesc json-2-csv@2.4.0 /opt/app/node_modules/json-2-csv bluebird@3.5.3 /opt/app/node_modules/bluebird deeks@1.0.0 /opt/app/node_modules/deeks underscore@1.9.1 /opt/app/node_modules/underscore doc-path@1.3.1 /opt/app/node_modules/doc-path less@2.7.3 /opt/app/node_modules/less mime@1.6.0 /opt/app/node_modules/less/node_modules/mime request@2.81.0 /opt/app/node_modules/less/node_modules/request aws-sign2@0.6.0 /opt/app/node_modules/aws-sign2 aws4@1.8.0 /opt/app/node_modules/aws4 caseless@0.12.0 /opt/app/node_modules/caseless combined-stream@1.0.7 /opt/app/node_modules/combined-stream delayed-stream@1.0.0 /opt/app/node_modules/delayed-stream extend@3.0.2 /opt/app/node_modules/extend forever-agent@0.6.1 /opt/app/node_modules/forever-agent form-data@2.1.4 /opt/app/node_modules/form-data asynckit@0.4.0 /opt/app/node_modules/asynckit har-validator@4.2.1 /opt/app/node_modules/har-validator ajv@4.11.8 /opt/app/node_modules/ajv co@4.6.0 /opt/app/node_modules/co json-stable-stringify@1.0.1 /opt/app/node_modules/json-stable-stringify jsonify@0.0.0 /opt/app/node_modules/jsonify har-schema@1.0.5 /opt/app/node_modules/har-schema hawk@3.1.3 /opt/app/node_modules/hawk boom@2.10.1 /opt/app/node_modules/boom hoek@2.16.3 /opt/app/node_modules/hoek cryptiles@2.0.5 /opt/app/node_modules/cryptiles sntp@1.0.9 /opt/app/node_modules/sntp http-signature@1.1.1 /opt/app/node_modules/http-signature assert-plus@0.2.0 /opt/app/node_modules/assert-plus jsprim@1.4.1 /opt/app/node_modules/jsprim assert-plus@1.0.0 /opt/app/node_modules/jsprim/node_modules/assert-plus extsprintf@1.3.0 /opt/app/node_modules/extsprintf json-schema@0.2.3 /opt/app/node_modules/json-schema verror@1.10.0 /opt/app/node_modules/verror assert-plus@1.0.0 /opt/app/node_modules/verror/node_modules/assert-plus sshpk@1.16.1 /opt/app/node_modules/sshpk asn1@0.2.4 /opt/app/node_modules/asn1 assert-plus@1.0.0 /opt/app/node_modules/sshpk/node_modules/assert-plus bcrypt-pbkdf@1.0.2 /opt/app/node_modules/bcrypt-pbkdf tweetnacl@0.14.5 /opt/app/node_modules/tweetnacl dashdash@1.14.1 /opt/app/node_modules/dashdash assert-plus@1.0.0 /opt/app/node_modules/dashdash/node_modules/assert-plus ecc-jsbn@0.1.2 /opt/app/node_modules/ecc-jsbn jsbn@0.1.1 /opt/app/node_modules/jsbn getpass@0.1.7 /opt/app/node_modules/getpass assert-plus@1.0.0 /opt/app/node_modules/getpass/node_modules/assert-plus is-typedarray@1.0.0 /opt/app/node_modules/is-typedarray isstream@0.1.2 /opt/app/node_modules/isstream json-stringify-safe@5.0.1 /opt/app/node_modules/json-stringify-safe oauth-sign@0.8.2 /opt/app/node_modules/oauth-sign performance-now@0.2.0 /opt/app/node_modules/performance-now qs@6.4.0 /opt/app/node_modules/less/node_modules/qs stringstream@0.0.6 /opt/app/node_modules/stringstream tough-cookie@2.3.4 /opt/app/node_modules/tough-cookie punycode@1.4.1 /opt/app/node_modules/punycode tunnel-agent@0.6.0 /opt/app/node_modules/tunnel-agent uuid@3.3.2 /opt/app/node_modules/uuid source-map@0.5.7 /opt/app/node_modules/less/node_modules/source-map logrotate-stream@0.2.5 /opt/app/node_modules/logrotate-stream byt@0.1.0 /opt/app/node_modules/byt log-rotate@0.2.8 /opt/app/node_modules/log-rotate lru-cache@4.1.3 /opt/app/node_modules/lru-cache pseudomap@1.0.2 /opt/app/node_modules/pseudomap yallist@2.1.2 /opt/app/node_modules/yallist material-design-lite@1.3.0 /opt/app/node_modules/material-design-lite mime@2.4.0 /opt/app/node_modules/mime mkdirp@0.5.1 /opt/app/node_modules/mkdirp minimist@0.0.8 /opt/app/node_modules/mkdirp/node_modules/minimist mongodb@3.1.6 /opt/app/node_modules/mongodb mongodb-core@3.1.5 /opt/app/node_modules/mongodb/node_modules/mongodb-core bson@1.1.0 /opt/app/node_modules/mongodb/node_modules/bson morgan@1.9.1 /opt/app/node_modules/morgan basic-auth@2.0.1 /opt/app/node_modules/basic-auth mousetrap@1.6.2 /opt/app/node_modules/mousetrap mubsub-nbb@1.5.0 /opt/app/node_modules/mubsub-nbb nconf@0.10.0 /opt/app/node_modules/nconf async@1.5.2 /opt/app/node_modules/nconf/node_modules/async ini@1.3.5 /opt/app/node_modules/ini secure-keys@1.0.0 /opt/app/node_modules/secure-keys yargs@3.32.0 /opt/app/node_modules/yargs camelcase@2.1.1 /opt/app/node_modules/camelcase cliui@3.2.0 /opt/app/node_modules/cliui string-width@1.0.2 /opt/app/node_modules/string-width code-point-at@1.1.0 /opt/app/node_modules/code-point-at is-fullwidth-code-point@1.0.0 /opt/app/node_modules/is-fullwidth-code-point strip-ansi@3.0.1 /opt/app/node_modules/strip-ansi ansi-regex@2.1.1 /opt/app/node_modules/ansi-regex wrap-ansi@2.1.0 /opt/app/node_modules/wrap-ansi decamelize@1.2.0 /opt/app/node_modules/decamelize os-locale@1.4.0 /opt/app/node_modules/os-locale lcid@1.0.0 /opt/app/node_modules/lcid invert-kv@1.0.0 /opt/app/node_modules/invert-kv window-size@0.1.4 /opt/app/node_modules/window-size y18n@3.2.1 /opt/app/node_modules/y18n nodebb-plugin-asset-manager@2.0.1 /opt/app/node_modules/nodebb-plugin-asset-manager mv@2.1.1 /opt/app/node_modules/mv ncp@2.0.0 /opt/app/node_modules/ncp rimraf@2.4.5 /opt/app/node_modules/mv/node_modules/rimraf glob@6.0.4 /opt/app/node_modules/mv/node_modules/glob prettysize@0.0.3 /opt/app/node_modules/prettysize nodebb-plugin-composer-default@6.1.4 /opt/app/node_modules/nodebb-plugin-composer-default screenfull@3.0.0 /opt/app/node_modules/screenfull validator@10.4.0 /opt/app/node_modules/nodebb-plugin-composer-default/node_modules/validator nodebb-plugin-dbsearch@2.0.21 /opt/app/node_modules/nodebb-plugin-dbsearch async@2.1.4 /opt/app/node_modules/nodebb-plugin-dbsearch/node_modules/async redisearch@0.0.11 /opt/app/node_modules/redisearch async@1.5.2 /opt/app/node_modules/redisearch/node_modules/async natural@0.2.1 /opt/app/node_modules/natural apparatus@0.0.10 /opt/app/node_modules/apparatus sylvester@0.0.21 /opt/app/node_modules/sylvester redis@0.12.1 /opt/app/node_modules/redisearch/node_modules/redis winston@2.3.1 /opt/app/node_modules/nodebb-plugin-dbsearch/node_modules/winston async@1.0.0 /opt/app/node_modules/nodebb-plugin-dbsearch/node_modules/winston/node_modules/async colors@1.0.3 /opt/app/node_modules/nodebb-plugin-dbsearch/node_modules/colors cycle@1.0.3 /opt/app/node_modules/cycle eyes@0.1.8 /opt/app/node_modules/eyes stack-trace@0.0.10 /opt/app/node_modules/stack-trace nodebb-plugin-emoji@2.2.6 /opt/app/node_modules/nodebb-plugin-emoji fs-extra@7.0.1 /opt/app/node_modules/fs-extra jsonfile@4.0.0 /opt/app/node_modules/jsonfile universalify@0.1.2 /opt/app/node_modules/universalify multer@1.4.1 /opt/app/node_modules/multer append-field@1.0.0 /opt/app/node_modules/append-field busboy@0.2.14 /opt/app/node_modules/busboy dicer@0.2.5 /opt/app/node_modules/dicer readable-stream@1.1.14 /opt/app/node_modules/dicer/node_modules/readable-stream isarray@0.0.1 /opt/app/node_modules/dicer/node_modules/isarray string_decoder@0.10.31 /opt/app/node_modules/dicer/node_modules/string_decoder streamsearch@0.1.2 /opt/app/node_modules/streamsearch readable-stream@1.1.14 /opt/app/node_modules/busboy/node_modules/readable-stream isarray@0.0.1 /opt/app/node_modules/busboy/node_modules/isarray string_decoder@0.10.31 /opt/app/node_modules/busboy/node_modules/string_decoder concat-stream@1.6.2 /opt/app/node_modules/concat-stream buffer-from@1.1.1 /opt/app/node_modules/buffer-from typedarray@0.0.6 /opt/app/node_modules/typedarray object-assign@4.1.1 /opt/app/node_modules/object-assign preact@8.4.2 /opt/app/node_modules/preact string-hash@1.1.3 /opt/app/node_modules/string-hash nodebb-plugin-emoji-android@2.0.0 /opt/app/node_modules/nodebb-plugin-emoji-android emoji-datasource-google@3.0.0 /opt/app/node_modules/emoji-datasource-google lodash.frompairs@4.0.1 /opt/app/node_modules/lodash.frompairs nodebb-plugin-markdown@8.8.0 /opt/app/node_modules/nodebb-plugin-markdown highlight.js@9.14.2 /opt/app/node_modules/highlight.js markdown-it@8.4.2 /opt/app/node_modules/markdown-it argparse@1.0.10 /opt/app/node_modules/argparse sprintf-js@1.0.3 /opt/app/node_modules/sprintf-js linkify-it@2.1.0 /opt/app/node_modules/linkify-it uc.micro@1.0.6 /opt/app/node_modules/uc.micro mdurl@1.0.1 /opt/app/node_modules/mdurl markdown-it-checkbox@1.1.0 /opt/app/node_modules/markdown-it-checkbox nodebb-plugin-mentions@2.2.10 /opt/app/node_modules/nodebb-plugin-mentions html-entities@1.2.1 /opt/app/node_modules/html-entities validator@9.4.1 /opt/app/node_modules/nodebb-plugin-mentions/node_modules/validator xregexp@3.2.0 /opt/app/node_modules/nodebb-plugin-mentions/node_modules/xregexp nodebb-plugin-quickstart@0.2.3 /opt/app/node_modules/nodebb-plugin-quickstart nodebb-plugin-session-sharing@4.4.0 /opt/app/node_modules/nodebb-plugin-session-sharing async@2.1.4 /opt/app/node_modules/nodebb-plugin-session-sharing/node_modules/async nodebb-plugin-soundpack-default@1.0.0 /opt/app/node_modules/nodebb-plugin-soundpack-default nodebb-plugin-spam-be-gone@0.5.4 /opt/app/node_modules/nodebb-plugin-spam-be-gone akismet@1.0.0 /opt/app/node_modules/akismet request@2.88.0 /opt/app/node_modules/request aws-sign2@0.7.0 /opt/app/node_modules/request/node_modules/aws-sign2 form-data@2.3.3 /opt/app/node_modules/request/node_modules/form-data har-validator@5.1.3 /opt/app/node_modules/request/node_modules/har-validator ajv@6.9.1 /opt/app/node_modules/request/node_modules/ajv fast-deep-equal@2.0.1 /opt/app/node_modules/fast-deep-equal fast-json-stable-stringify@2.0.0 /opt/app/node_modules/fast-json-stable-stringify json-schema-traverse@0.4.1 /opt/app/node_modules/json-schema-traverse uri-js@4.2.2 /opt/app/node_modules/uri-js punycode@2.1.1 /opt/app/node_modules/uri-js/node_modules/punycode har-schema@2.0.0 /opt/app/node_modules/request/node_modules/har-schema http-signature@1.2.0 /opt/app/node_modules/request/node_modules/http-signature assert-plus@1.0.0 /opt/app/node_modules/request/node_modules/assert-plus oauth-sign@0.9.0 /opt/app/node_modules/request/node_modules/oauth-sign performance-now@2.1.0 /opt/app/node_modules/request/node_modules/performance-now tough-cookie@2.4.3 /opt/app/node_modules/request/node_modules/tough-cookie psl@1.1.31 /opt/app/node_modules/psl project-honeypot@0.0.0 /opt/app/node_modules/project-honeypot simple-recaptcha-new@1.1.1 /opt/app/node_modules/simple-recaptcha-new nodebb-rewards-essentials@0.0.11 /opt/app/node_modules/nodebb-rewards-essentials nodebb-theme-lavender@5.0.8 /opt/app/node_modules/nodebb-theme-lavender nodebb-theme-persona@9.0.42 /opt/app/node_modules/nodebb-theme-persona pulling@2.0.0 /opt/app/node_modules/pulling striptags@3.1.1 /opt/app/node_modules/striptags nodebb-theme-santander@0.0.1 /opt/app/node_modules/nodebb-theme-santander nodebb-theme-slick@1.2.11 /opt/app/node_modules/nodebb-theme-slick nodebb-theme-vanilla@10.1.6 /opt/app/node_modules/nodebb-theme-vanilla nodebb-widget-essentials@4.0.7 /opt/app/node_modules/nodebb-widget-essentials nodemailer@4.7.0 /opt/app/node_modules/nodemailer passport@0.4.0 /opt/app/node_modules/passport passport-strategy@1.0.0 /opt/app/node_modules/passport-strategy pause@0.0.1 /opt/app/node_modules/pause passport-local@1.0.0 /opt/app/node_modules/passport-local pg-cursor@1.3.0 /opt/app/node_modules/pg-cursor postcss@7.0.5 /opt/app/node_modules/postcss supports-color@5.5.0 /opt/app/node_modules/postcss/node_modules/supports-color postcss-clean@1.1.0 /opt/app/node_modules/postcss-clean clean-css@4.2.1 /opt/app/node_modules/clean-css postcss@6.0.23 /opt/app/node_modules/postcss-clean/node_modules/postcss supports-color@5.5.0 /opt/app/node_modules/postcss-clean/node_modules/supports-color promise-polyfill@8.1.0 /opt/app/node_modules/promise-polyfill prompt@1.0.0 /opt/app/node_modules/prompt pkginfo@0.4.1 /opt/app/node_modules/pkginfo read@1.0.7 /opt/app/node_modules/read mute-stream@0.0.8 /opt/app/node_modules/mute-stream revalidator@0.1.8 /opt/app/node_modules/revalidator utile@0.3.0 /opt/app/node_modules/utile async@0.9.2 /opt/app/node_modules/utile/node_modules/async deep-equal@0.2.2 /opt/app/node_modules/deep-equal i@0.3.6 /opt/app/node_modules/i ncp@1.0.1 /opt/app/node_modules/utile/node_modules/ncp rimraf@2.6.2 /opt/app/node_modules/rimraf winston@2.1.1 /opt/app/node_modules/prompt/node_modules/winston async@1.0.0 /opt/app/node_modules/prompt/node_modules/async colors@1.0.3 /opt/app/node_modules/prompt/node_modules/winston/node_modules/colors pkginfo@0.3.1 /opt/app/node_modules/prompt/node_modules/winston/node_modules/pkginfo rss@1.2.2 /opt/app/node_modules/rss mime-types@2.1.13 /opt/app/node_modules/rss/node_modules/mime-types mime-db@1.25.0 /opt/app/node_modules/rss/node_modules/mime-db xml@1.0.1 /opt/app/node_modules/xml sanitize-html@1.20.0 /opt/app/node_modules/sanitize-html lodash.clonedeep@4.5.0 /opt/app/node_modules/lodash.clonedeep lodash.escaperegexp@4.1.2 /opt/app/node_modules/lodash.escaperegexp lodash.isstring@4.0.1 /opt/app/node_modules/lodash.isstring lodash.mergewith@4.6.1 /opt/app/node_modules/lodash.mergewith srcset@1.0.0 /opt/app/node_modules/srcset array-uniq@1.0.3 /opt/app/node_modules/array-uniq serve-favicon@2.5.0 /opt/app/node_modules/serve-favicon ms@2.1.1 /opt/app/node_modules/serve-favicon/node_modules/ms safe-buffer@5.1.1 /opt/app/node_modules/serve-favicon/node_modules/safe-buffer sharp@0.21.3 /opt/app/node_modules/sharp bindings@1.4.0 /opt/app/node_modules/bindings file-uri-to-path@1.0.0 /opt/app/node_modules/file-uri-to-path color@3.1.0 /opt/app/node_modules/color color-string@1.5.3 /opt/app/node_modules/color-string simple-swizzle@0.2.2 /opt/app/node_modules/simple-swizzle is-arrayish@0.3.2 /opt/app/node_modules/is-arrayish detect-libc@1.0.3 /opt/app/node_modules/detect-libc fs-copy-file-sync@1.1.1 /opt/app/node_modules/fs-copy-file-sync nan@2.12.1 /opt/app/node_modules/nan npmlog@4.1.2 /opt/app/node_modules/npmlog are-we-there-yet@1.1.5 /opt/app/node_modules/are-we-there-yet delegates@1.0.0 /opt/app/node_modules/delegates console-control-strings@1.1.0 /opt/app/node_modules/console-control-strings gauge@2.7.4 /opt/app/node_modules/gauge aproba@1.2.0 /opt/app/node_modules/aproba has-unicode@2.0.1 /opt/app/node_modules/has-unicode signal-exit@3.0.2 /opt/app/node_modules/signal-exit wide-align@1.1.3 /opt/app/node_modules/wide-align set-blocking@2.0.0 /opt/app/node_modules/set-blocking prebuild-install@5.2.4 /opt/app/node_modules/prebuild-install expand-template@2.0.3 /opt/app/node_modules/expand-template github-from-package@0.0.0 /opt/app/node_modules/github-from-package minimist@1.2.0 /opt/app/node_modules/prebuild-install/node_modules/minimist napi-build-utils@1.0.1 /opt/app/node_modules/napi-build-utils node-abi@2.7.1 /opt/app/node_modules/node-abi noop-logger@0.1.1 /opt/app/node_modules/noop-logger os-homedir@1.0.2 /opt/app/node_modules/os-homedir pump@2.0.1 /opt/app/node_modules/pump rc@1.2.8 /opt/app/node_modules/rc deep-extend@0.6.0 /opt/app/node_modules/deep-extend minimist@1.2.0 /opt/app/node_modules/rc/node_modules/minimist strip-json-comments@2.0.1 /opt/app/node_modules/strip-json-comments simple-get@2.8.1 /opt/app/node_modules/prebuild-install/node_modules/simple-get decompress-response@3.3.0 /opt/app/node_modules/decompress-response mimic-response@1.0.1 /opt/app/node_modules/mimic-response simple-concat@1.0.0 /opt/app/node_modules/simple-concat tar-fs@1.16.3 /opt/app/node_modules/tar-fs chownr@1.1.1 /opt/app/node_modules/chownr pump@1.0.3 /opt/app/node_modules/tar-fs/node_modules/pump which-pm-runs@1.0.0 /opt/app/node_modules/which-pm-runs simple-get@3.0.3 /opt/app/node_modules/simple-get tar@4.4.8 /opt/app/node_modules/tar fs-minipass@1.2.5 /opt/app/node_modules/fs-minipass minipass@2.3.5 /opt/app/node_modules/minipass yallist@3.0.3 /opt/app/node_modules/minipass/node_modules/yallist minizlib@1.2.1 /opt/app/node_modules/minizlib yallist@3.0.3 /opt/app/node_modules/tar/node_modules/yallist sitemap@1.13.0 /opt/app/node_modules/sitemap url-join@1.1.0 /opt/app/node_modules/url-join socket.io@2.1.1 /opt/app/node_modules/socket.io debug@3.1.0 /opt/app/node_modules/socket.io/node_modules/debug engine.io@3.2.1 /opt/app/node_modules/engine.io base64id@1.0.0 /opt/app/node_modules/base64id debug@3.1.0 /opt/app/node_modules/engine.io/node_modules/debug engine.io-parser@2.1.3 /opt/app/node_modules/engine.io-parser after@0.8.2 /opt/app/node_modules/after arraybuffer.slice@0.0.7 /opt/app/node_modules/arraybuffer.slice base64-arraybuffer@0.1.5 /opt/app/node_modules/base64-arraybuffer blob@0.0.5 /opt/app/node_modules/blob has-binary2@1.0.3 /opt/app/node_modules/has-binary2 isarray@2.0.1 /opt/app/node_modules/has-binary2/node_modules/isarray ws@3.3.3 /opt/app/node_modules/ws async-limiter@1.0.0 /opt/app/node_modules/async-limiter ultron@1.1.1 /opt/app/node_modules/ultron socket.io-adapter@1.1.1 /opt/app/node_modules/socket.io-adapter socket.io-client@2.1.1 /opt/app/node_modules/socket.io-client backo2@1.0.2 /opt/app/node_modules/backo2 component-bind@1.0.0 /opt/app/node_modules/component-bind component-emitter@1.2.1 /opt/app/node_modules/component-emitter debug@3.1.0 /opt/app/node_modules/socket.io-client/node_modules/debug engine.io-client@3.2.1 /opt/app/node_modules/engine.io-client component-inherit@0.0.3 /opt/app/node_modules/component-inherit debug@3.1.0 /opt/app/node_modules/engine.io-client/node_modules/debug has-cors@1.1.0 /opt/app/node_modules/has-cors indexof@0.0.1 /opt/app/node_modules/indexof parseqs@0.0.5 /opt/app/node_modules/parseqs better-assert@1.0.2 /opt/app/node_modules/better-assert callsite@1.0.0 /opt/app/node_modules/callsite parseuri@0.0.5 /opt/app/node_modules/parseuri xmlhttprequest-ssl@1.5.5 /opt/app/node_modules/xmlhttprequest-ssl yeast@0.1.2 /opt/app/node_modules/yeast object-component@0.0.3 /opt/app/node_modules/object-component socket.io-parser@3.2.0 /opt/app/node_modules/socket.io-parser debug@3.1.0 /opt/app/node_modules/socket.io-parser/node_modules/debug isarray@2.0.1 /opt/app/node_modules/socket.io-parser/node_modules/isarray to-array@0.1.4 /opt/app/node_modules/to-array socket.io-adapter-cluster@1.0.1 /opt/app/node_modules/socket.io-adapter-cluster debug@3.2.6 /opt/app/node_modules/socket.io-adapter-cluster/node_modules/debug ms@2.1.1 /opt/app/node_modules/socket.io-adapter-cluster/node_modules/ms socket.io-adapter-mongo@2.0.3 /opt/app/node_modules/socket.io-adapter-mongo debug@2.2.0 /opt/app/node_modules/socket.io-adapter-mongo/node_modules/debug ms@0.7.1 /opt/app/node_modules/socket.io-adapter-mongo/node_modules/ms mongodb-uri@0.9.7 /opt/app/node_modules/mongodb-uri msgpack-js@0.3.0 /opt/app/node_modules/msgpack-js bops@0.0.7 /opt/app/node_modules/bops base64-js@0.0.2 /opt/app/node_modules/bops/node_modules/base64-js to-utf8@0.0.1 /opt/app/node_modules/to-utf8 mubsub@1.4.0 /opt/app/node_modules/mubsub mongodb@2.2.36 /opt/app/node_modules/mubsub/node_modules/mongodb readable-stream@2.2.7 /opt/app/node_modules/mubsub/node_modules/readable-stream process-nextick-args@1.0.7 /opt/app/node_modules/mubsub/node_modules/process-nextick-args string_decoder@1.0.3 /opt/app/node_modules/mubsub/node_modules/string_decoder uid2@0.0.3 /opt/app/node_modules/uid2 socket.io-adapter-postgres@1.2.0 /opt/app/node_modules/socket.io-adapter-postgres debug@4.1.1 /opt/app/node_modules/socket.io-adapter-postgres/node_modules/debug ms@2.1.1 /opt/app/node_modules/socket.io-adapter-postgres/node_modules/ms notepack.io@2.2.0 /opt/app/node_modules/notepack.io socket.io-redis@5.2.0 /opt/app/node_modules/socket.io-redis notepack.io@2.1.3 /opt/app/node_modules/socket.io-redis/node_modules/notepack.io socketio-wildcard@2.0.0 /opt/app/node_modules/socketio-wildcard spdx-license-list@4.1.0 /opt/app/node_modules/spdx-license-list spider-detector@1.0.18 /opt/app/node_modules/spider-detector toobusy-js@0.5.1 /opt/app/node_modules/toobusy-js uglify-es@3.3.9 /opt/app/node_modules/uglify-es commander@2.13.0 /opt/app/node_modules/uglify-es/node_modules/commander util.promisify@1.0.0 /opt/app/node_modules/util.promisify define-properties@1.1.3 /opt/app/node_modules/define-properties object-keys@1.1.0 /opt/app/node_modules/object-keys object.getownpropertydescriptors@2.0.3 /opt/app/node_modules/object.getownpropertydescriptors es-abstract@1.13.0 /opt/app/node_modules/es-abstract es-to-primitive@1.2.0 /opt/app/node_modules/es-to-primitive is-callable@1.1.4 /opt/app/node_modules/is-callable is-date-object@1.0.1 /opt/app/node_modules/is-date-object is-symbol@1.0.2 /opt/app/node_modules/is-symbol has-symbols@1.0.0 /opt/app/node_modules/has-symbols function-bind@1.1.1 /opt/app/node_modules/function-bind has@1.0.3 /opt/app/node_modules/has is-regex@1.0.4 /opt/app/node_modules/is-regex validator@10.8.0 /opt/app/node_modules/validator winston@2.4.4 /opt/app/node_modules/winston async@1.0.0 /opt/app/node_modules/winston/node_modules/async colors@1.0.3 /opt/app/node_modules/winston/node_modules/colors xregexp@4.2.4 /opt/app/node_modules/xregexp @babel/runtime-corejs2@7.3.1 /opt/app/node_modules/@babel/runtime-corejs2 regenerator-runtime@0.12.1 /opt/app/node_modules/@babel/runtime-corejs2/node_modules/regenerator-runtime zxcvbn@4.4.2 /opt/app/node_modules/zxcvbn asap@2.0.6 /opt/app/node_modules/asap buffer-equal-constant-time@1.0.1 /opt/app/node_modules/buffer-equal-constant-time ecdsa-sig-formatter@1.0.10 /opt/app/node_modules/ecdsa-sig-formatter jwa@1.2.0 /opt/app/node_modules/jwa jws@3.2.1 /opt/app/node_modules/jws memory-pager@1.5.0 /opt/app/node_modules/memory-pager promise@7.3.1 /opt/app/node_modules/promise prr@1.0.1 /opt/app/node_modules/prr saslprep@1.0.2 /opt/app/node_modules/saslprep sparse-bitfield@3.0.3 /opt/app/node_modules/sparse-bitfield errno@0.1.7 /opt/app/node_modules/errno image-size@0.5.5 /opt/app/node_modules/image-size jsonwebtoken@5.5.4 /opt/app/node_modules/jsonwebtoken ms@0.7.3 /opt/app/node_modules/jsonwebtoken/node_modules/ms npm info ok
But same error is fired when I try to upload an image:
019-02-12T17:12:29.445Z [2356] - error: message=/lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /opt/app/node_modules/sharp/build/Release/../../vendor/lib/libpng16.so.16), stack=Error: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /opt/app/node_modules/sharp/build/Release/../../vendor/lib/libpng16.so.16) at Object.Module._extensions..node (module.js:664:18) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at bindings (/opt/app/node_modules/bindings/bindings.js:112:48) at Object.<anonymous> (/opt/app/node_modules/sharp/lib/constructor.js:10:34) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/app/node_modules/sharp/lib/index.js:3:15) 2019-02-12T17:12:29.446Z [2356] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. io: 2 emit [ 'disconnecting', 'transport error' ] io: 2 emit [ 'disconnect', 'transport error' ] 2019-02-12T17:12:29.469Z [2356] - info: [app] Web server closed to connections. 2019-02-12T17:12:29.471Z [2356] - info: [app] Database connection closed. 2019-02-12T17:12:29.471Z [2356] - info: [app] Shutdown complete. [cluster] Child Process (2356) has exited (code: 1, signal: null) [cluster] Spinning up another process... 2019-02-12T17:12:29.872Z [2367] - info: Initializing NodeBB v1.10.2 https://foro-nodebb-san-marketplace-dev.appls.boae.paas.gsnetcloud.corp
I think that maybe the error is related with sharp binary generated during npm install script.
I have done the setup in local windows environment and I have been able to upload an image, no errors.
After that I upload node_modules/sharp folder to my Openshift environment but I get a different error:2019-02-12T17:18:25.982Z [2407] - error: message='win32-x64' binaries cannot be used on the 'linux-x64' platform. Please remove the 'node_modules/sharp/vendor' directory and run 'npm install'., stack=Error: 'win32-x64' binaries cannot be used on the 'linux-x64' platform. Please remove the 'node_modules/sharp/vendor' directory and run 'npm install'. at Object.hasVendoredLibvips (/opt/app/node_modules/sharp/lib/libvips.js:61:13) at Object.<anonymous> (/opt/app/node_modules/sharp/lib/constructor.js:9:22) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/app/node_modules/sharp/lib/index.js:3:15) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) 2019-02-12T17:18:25.983Z [2407] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. io: 2 emit [ 'disconnecting', 'transport error' ] io: 2 emit [ 'disconnect', 'transport error' ] 2019-02-12T17:18:25.987Z [2407] - info: [app] Web server closed to connections. 2019-02-12T17:18:25.989Z [2407] - info: [app] Database connection closed. 2019-02-12T17:18:25.990Z [2407] - info: [app] Shutdown complete. [cluster] Child Process (2407) has exited (code: 1, signal: null) [cluster] Spinning up another process... 2019-02-12T17:18:26.467Z [2418] - info: Initializing NodeBB v1.10.2 https://foro-nodebb-san-marketplace-dev.appls.boae.paas.gsnetcloud.corp
It is posible to get final sharp binary for linux?
-
Have you tried
npm install --build-from-source
? -
I have tried:
sh-4.2$ rm -rf node_modules/sharp/ sh-4.2$ npm install --build-from-source npm info it worked if it ends with ok npm info using npm@5.5.1 npm info using node@v8.9.1 npm info lifecycle nodebb@1.10.2~preinstall: nodebb@1.10.2 npm info lifecycle sharp@0.21.0~preinstall: sharp@0.21.0 npm info linkStuff sharp@0.21.0 npm info lifecycle sharp@0.21.0~install: sharp@0.21.0 > sharp@0.21.0 install /opt/app/node_modules/sharp > (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) info sharp Using cached /home/nodejs/.npm/_libvips/libvips-8.7.0-linux-x64.tar.gz prebuild-install info begin Prebuild-install version 5.2.4 prebuild-install info install --build-from-source specified, not attempting download. gyp info it worked if it ends with ok gyp info using node-gyp@3.6.2 gyp info using node@8.9.1 | linux | x64 gyp info spawn /usr/bin/python2 gyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/opt/app/node_modules/sharp/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/nodejs/.node-gyp/8.9.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/nodejs/.node-gyp/8.9.1', gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/nodejs/.node-gyp/8.9.1/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/opt/app/node_modules/sharp', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory `/opt/app/node_modules/sharp/build' TOUCH Release/obj.target/libvips-cpp.stamp CXX(target) Release/obj.target/sharp/src/common.o CXX(target) Release/obj.target/sharp/src/metadata.o CXX(target) Release/obj.target/sharp/src/stats.o CXX(target) Release/obj.target/sharp/src/operations.o CXX(target) Release/obj.target/sharp/src/pipeline.o CXX(target) Release/obj.target/sharp/src/sharp.o CXX(target) Release/obj.target/sharp/src/utilities.o SOLINK_MODULE(target) Release/obj.target/sharp.node COPY Release/sharp.node make: Leaving directory `/opt/app/node_modules/sharp/build' gyp info ok npm info lifecycle sharp@0.21.0~postinstall: sharp@0.21.0 npm info linkStuff nodebb@1.10.2 npm info lifecycle nodebb@1.10.2~install: nodebb@1.10.2 npm info lifecycle nodebb@1.10.2~postinstall: nodebb@1.10.2 npm info lifecycle undefined~preshrinkwrap: undefined npm info lifecycle undefined~shrinkwrap: undefined npm info lifecycle undefined~postshrinkwrap: undefined added 1 package in 18.785s npm info ok
But same error:
2019-02-12T17:46:47.222Z [2756] - verbose: [plugins/fireHook] filter:parse.raw 2019-02-12T17:46:48.808Z [2756] - error: message=/lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /opt/app/node_modules/sharp/build/Release/../../vendor/lib/libpng16.so.16), stack=Error: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /opt/app/node_modules/sharp/build/Release/../../vendor/lib/libpng16.so.16) at Object.Module._extensions..node (module.js:664:18) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/app/node_modules/sharp/lib/constructor.js:10:15) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/app/node_modules/sharp/lib/index.js:3:15) at Module._compile (module.js:635:30) 2019-02-12T17:46:48.810Z [2756] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised. io: 2 emit [ 'disconnecting', 'transport close' ] io: 2 emit [ 'disconnect', 'transport close' ] 2019-02-12T17:46:48.813Z [2756] - info: [app] Web server closed to connections. 2019-02-12T17:46:48.815Z [2756] - info: [app] Database connection closed. 2019-02-12T17:46:48.815Z [2756] - info: [app] Shutdown complete. [cluster] Child Process (2756) has exited (code: 1, signal: null) [cluster] Spinning up another process... 2019-02-12T17:46:49.192Z [2767] - info: Initializing NodeBB v1.10.2 https://foro-nodebb-san-marketplace-dev.appls.boae.paas.gsnetcloud.corp
-
@Alvaro5 I assume you restarted NodeBB after running the npm command, yes?
Try the solutions here:
NodeJS app on OpenShift: /lib64/libz.so.1: version `ZLIB_1.2.9' not found
I'm new to Stackoverflow, so "hi" to everyone! I'm also new to deployment on OpenShift Online (free starter account). I run into the following error when deploying a personal NodeJS app requiring ...
Stack Overflow (stackoverflow.com)
-
So finally the error is gone.
I added this environment variable to my Openshift proyect:
LD_PRELOAD = '/opt/app/node_modules/sharp/vendor/lib/libz.so'This is the url to sharp inside my node_modules.
When I opened the terminal I get and error saying that it can't be preloaded but after installing all dependencies the error is gone, and I could upload images!!!
Thank you very much @PitaJ !!!!