image upload issues
-
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):
[email protected] /opt/app/node_modules/mongodb-core [email protected] /opt/app/node_modules/bson [email protected] /opt/app/node_modules/require_optional [email protected] /opt/app/node_modules/resolve-from [email protected] /opt/app/node_modules/connect-mongo/node_modules/readable-stream [email protected] /opt/app/node_modules/buffer-shims [email protected] /opt/app/node_modules/connect-mongo/node_modules/process-nextick-args [email protected] /opt/app/node_modules/connect-mongo/node_modules/string_decoder [email protected] /opt/app/node_modules/connect-multiparty [email protected] /opt/app/node_modules/connect-multiparty/node_modules/http-errors [email protected] /opt/app/node_modules/toidentifier [email protected] /opt/app/node_modules/multiparty [email protected] /opt/app/node_modules/fd-slicer [email protected] /opt/app/node_modules/pend [email protected] /opt/app/node_modules/multiparty/node_modules/http-errors [email protected] /opt/app/node_modules/uid-safe [email protected] /opt/app/node_modules/random-bytes [email protected] /opt/app/node_modules/connect-pg-simple [email protected] /opt/app/node_modules/pg [email protected] /opt/app/node_modules/buffer-writer [email protected] /opt/app/node_modules/packet-reader [email protected] /opt/app/node_modules/pg-connection-string [email protected] /opt/app/node_modules/pg-pool [email protected] /opt/app/node_modules/pg-types [email protected] /opt/app/node_modules/pg-int8 [email protected] /opt/app/node_modules/postgres-array [email protected] /opt/app/node_modules/postgres-bytea [email protected] /opt/app/node_modules/postgres-date [email protected] /opt/app/node_modules/postgres-interval [email protected] /opt/app/node_modules/pgpass [email protected] /opt/app/node_modules/split [email protected] /opt/app/node_modules/through [email protected] /opt/app/node_modules/pg/node_modules/semver [email protected] /opt/app/node_modules/connect-redis [email protected] /opt/app/node_modules/connect-redis/node_modules/debug [email protected] /opt/app/node_modules/connect-redis/node_modules/ms [email protected] /opt/app/node_modules/redis [email protected] /opt/app/node_modules/double-ended-queue [email protected] /opt/app/node_modules/redis-commands [email protected] /opt/app/node_modules/redis-parser [email protected] /opt/app/node_modules/continuation-local-storage [email protected] /opt/app/node_modules/async-listener [email protected] /opt/app/node_modules/shimmer [email protected] /opt/app/node_modules/emitter-listener [email protected] /opt/app/node_modules/cookie-parser [email protected] /opt/app/node_modules/cookie [email protected] /opt/app/node_modules/cookie-signature [email protected] /opt/app/node_modules/cron [email protected] /opt/app/node_modules/moment-timezone [email protected] /opt/app/node_modules/cropperjs [email protected] /opt/app/node_modules/csurf [email protected] /opt/app/node_modules/csrf [email protected] /opt/app/node_modules/rndm [email protected] /opt/app/node_modules/tsscmp [email protected] /opt/app/node_modules/csrf/node_modules/uid-safe [email protected] /opt/app/node_modules/csurf/node_modules/http-errors [email protected] /opt/app/node_modules/csurf/node_modules/setprototypeof [email protected] /opt/app/node_modules/daemon [email protected] /opt/app/node_modules/diff [email protected] /opt/app/node_modules/express [email protected] /opt/app/node_modules/array-flatten [email protected] /opt/app/node_modules/content-disposition [email protected] /opt/app/node_modules/encodeurl [email protected] /opt/app/node_modules/escape-html [email protected] /opt/app/node_modules/etag [email protected] /opt/app/node_modules/finalhandler [email protected] /opt/app/node_modules/parseurl [email protected] /opt/app/node_modules/finalhandler/node_modules/statuses [email protected] /opt/app/node_modules/fresh [email protected] /opt/app/node_modules/merge-descriptors [email protected] /opt/app/node_modules/methods [email protected] /opt/app/node_modules/path-to-regexp [email protected] /opt/app/node_modules/proxy-addr [email protected] /opt/app/node_modules/forwarded [email protected] /opt/app/node_modules/proxy-addr/node_modules/ipaddr.js [email protected] /opt/app/node_modules/range-parser [email protected] /opt/app/node_modules/send [email protected] /opt/app/node_modules/destroy [email protected] /opt/app/node_modules/send/node_modules/mime [email protected] /opt/app/node_modules/send/node_modules/statuses [email protected] /opt/app/node_modules/serve-static [email protected] /opt/app/node_modules/express/node_modules/statuses [email protected] /opt/app/node_modules/utils-merge [email protected] /opt/app/node_modules/express-session [email protected] /opt/app/node_modules/express-session/node_modules/crc [email protected] /opt/app/node_modules/express-useragent [email protected] /opt/app/node_modules/helmet [email protected] /opt/app/node_modules/helmet/node_modules/depd [email protected] /opt/app/node_modules/dns-prefetch-control [email protected] /opt/app/node_modules/dont-sniff-mimetype [email protected] /opt/app/node_modules/expect-ct [email protected] /opt/app/node_modules/feature-policy [email protected] /opt/app/node_modules/frameguard [email protected] /opt/app/node_modules/helmet-crossdomain [email protected] /opt/app/node_modules/helmet-csp [email protected] /opt/app/node_modules/camelize [email protected] /opt/app/node_modules/content-security-policy-builder [email protected] /opt/app/node_modules/dasherize [email protected] /opt/app/node_modules/platform [email protected] /opt/app/node_modules/hide-powered-by [email protected] /opt/app/node_modules/hpkp [email protected] /opt/app/node_modules/hsts [email protected] /opt/app/node_modules/ienoopen [email protected] /opt/app/node_modules/nocache [email protected] /opt/app/node_modules/referrer-policy [email protected] /opt/app/node_modules/x-xss-protection [email protected] /opt/app/node_modules/html-to-text [email protected] /opt/app/node_modules/he [email protected] /opt/app/node_modules/htmlparser2 [email protected] /opt/app/node_modules/domelementtype [email protected] /opt/app/node_modules/domhandler [email protected] /opt/app/node_modules/domutils [email protected] /opt/app/node_modules/dom-serializer [email protected] /opt/app/node_modules/dom-serializer/node_modules/domelementtype [email protected] /opt/app/node_modules/entities [email protected] /opt/app/node_modules/htmlparser2/node_modules/readable-stream [email protected] /opt/app/node_modules/optimist [email protected] /opt/app/node_modules/minimist [email protected] /opt/app/node_modules/wordwrap [email protected] /opt/app/node_modules/ipaddr.js [email protected] /opt/app/node_modules/jquery [email protected] /opt/app/node_modules/jsesc [email protected] /opt/app/node_modules/json-2-csv [email protected] /opt/app/node_modules/bluebird [email protected] /opt/app/node_modules/deeks [email protected] /opt/app/node_modules/underscore [email protected] /opt/app/node_modules/doc-path [email protected] /opt/app/node_modules/less [email protected] /opt/app/node_modules/less/node_modules/mime [email protected] /opt/app/node_modules/less/node_modules/request [email protected] /opt/app/node_modules/aws-sign2 [email protected] /opt/app/node_modules/aws4 [email protected] /opt/app/node_modules/caseless [email protected] /opt/app/node_modules/combined-stream [email protected] /opt/app/node_modules/delayed-stream [email protected] /opt/app/node_modules/extend [email protected] /opt/app/node_modules/forever-agent [email protected] /opt/app/node_modules/form-data [email protected] /opt/app/node_modules/asynckit [email protected] /opt/app/node_modules/har-validator [email protected] /opt/app/node_modules/ajv [email protected] /opt/app/node_modules/co [email protected] /opt/app/node_modules/json-stable-stringify [email protected] /opt/app/node_modules/jsonify [email protected] /opt/app/node_modules/har-schema [email protected] /opt/app/node_modules/hawk [email protected] /opt/app/node_modules/boom [email protected] /opt/app/node_modules/hoek [email protected] /opt/app/node_modules/cryptiles [email protected] /opt/app/node_modules/sntp [email protected] /opt/app/node_modules/http-signature [email protected] /opt/app/node_modules/assert-plus [email protected] /opt/app/node_modules/jsprim [email protected] /opt/app/node_modules/jsprim/node_modules/assert-plus [email protected] /opt/app/node_modules/extsprintf [email protected] /opt/app/node_modules/json-schema [email protected] /opt/app/node_modules/verror [email protected] /opt/app/node_modules/verror/node_modules/assert-plus [email protected] /opt/app/node_modules/sshpk [email protected] /opt/app/node_modules/asn1 [email protected] /opt/app/node_modules/sshpk/node_modules/assert-plus [email protected] /opt/app/node_modules/bcrypt-pbkdf [email protected] /opt/app/node_modules/tweetnacl [email protected] /opt/app/node_modules/dashdash [email protected] /opt/app/node_modules/dashdash/node_modules/assert-plus [email protected] /opt/app/node_modules/ecc-jsbn [email protected] /opt/app/node_modules/jsbn [email protected] /opt/app/node_modules/getpass [email protected] /opt/app/node_modules/getpass/node_modules/assert-plus [email protected] /opt/app/node_modules/is-typedarray [email protected] /opt/app/node_modules/isstream [email protected] /opt/app/node_modules/json-stringify-safe [email protected] /opt/app/node_modules/oauth-sign [email protected] /opt/app/node_modules/performance-now [email protected] /opt/app/node_modules/less/node_modules/qs [email protected] /opt/app/node_modules/stringstream [email protected] /opt/app/node_modules/tough-cookie [email protected] /opt/app/node_modules/punycode [email protected] /opt/app/node_modules/tunnel-agent [email protected] /opt/app/node_modules/uuid [email protected] /opt/app/node_modules/less/node_modules/source-map [email protected] /opt/app/node_modules/logrotate-stream [email protected] /opt/app/node_modules/byt [email protected] /opt/app/node_modules/log-rotate [email protected] /opt/app/node_modules/lru-cache [email protected] /opt/app/node_modules/pseudomap [email protected] /opt/app/node_modules/yallist [email protected] /opt/app/node_modules/material-design-lite [email protected] /opt/app/node_modules/mime [email protected] /opt/app/node_modules/mkdirp [email protected] /opt/app/node_modules/mkdirp/node_modules/minimist [email protected] /opt/app/node_modules/mongodb [email protected] /opt/app/node_modules/mongodb/node_modules/mongodb-core [email protected] /opt/app/node_modules/mongodb/node_modules/bson [email protected] /opt/app/node_modules/morgan [email protected] /opt/app/node_modules/basic-auth [email protected] /opt/app/node_modules/mousetrap [email protected] /opt/app/node_modules/mubsub-nbb [email protected] /opt/app/node_modules/nconf [email protected] /opt/app/node_modules/nconf/node_modules/async [email protected] /opt/app/node_modules/ini [email protected] /opt/app/node_modules/secure-keys [email protected] /opt/app/node_modules/yargs [email protected] /opt/app/node_modules/camelcase [email protected] /opt/app/node_modules/cliui [email protected] /opt/app/node_modules/string-width [email protected] /opt/app/node_modules/code-point-at [email protected] /opt/app/node_modules/is-fullwidth-code-point [email protected] /opt/app/node_modules/strip-ansi [email protected] /opt/app/node_modules/ansi-regex [email protected] /opt/app/node_modules/wrap-ansi [email protected] /opt/app/node_modules/decamelize [email protected] /opt/app/node_modules/os-locale [email protected] /opt/app/node_modules/lcid [email protected] /opt/app/node_modules/invert-kv [email protected] /opt/app/node_modules/window-size [email protected] /opt/app/node_modules/y18n [email protected] /opt/app/node_modules/nodebb-plugin-asset-manager [email protected] /opt/app/node_modules/mv [email protected] /opt/app/node_modules/ncp [email protected] /opt/app/node_modules/mv/node_modules/rimraf [email protected] /opt/app/node_modules/mv/node_modules/glob [email protected] /opt/app/node_modules/prettysize [email protected] /opt/app/node_modules/nodebb-plugin-composer-default [email protected] /opt/app/node_modules/screenfull [email protected] /opt/app/node_modules/nodebb-plugin-composer-default/node_modules/validator [email protected] /opt/app/node_modules/nodebb-plugin-dbsearch [email protected] /opt/app/node_modules/nodebb-plugin-dbsearch/node_modules/async [email protected] /opt/app/node_modules/redisearch [email protected] /opt/app/node_modules/redisearch/node_modules/async [email protected] /opt/app/node_modules/natural [email protected] /opt/app/node_modules/apparatus [email protected] /opt/app/node_modules/sylvester [email protected] /opt/app/node_modules/redisearch/node_modules/redis [email protected] /opt/app/node_modules/nodebb-plugin-dbsearch/node_modules/winston [email protected] /opt/app/node_modules/nodebb-plugin-dbsearch/node_modules/winston/node_modules/async [email protected] /opt/app/node_modules/nodebb-plugin-dbsearch/node_modules/colors [email protected] /opt/app/node_modules/cycle [email protected] /opt/app/node_modules/eyes [email protected] /opt/app/node_modules/stack-trace [email protected] /opt/app/node_modules/nodebb-plugin-emoji [email protected] /opt/app/node_modules/fs-extra [email protected] /opt/app/node_modules/jsonfile [email protected] /opt/app/node_modules/universalify [email protected] /opt/app/node_modules/multer [email protected] /opt/app/node_modules/append-field [email protected] /opt/app/node_modules/busboy [email protected] /opt/app/node_modules/dicer [email protected] /opt/app/node_modules/dicer/node_modules/readable-stream [email protected] /opt/app/node_modules/dicer/node_modules/isarray [email protected] /opt/app/node_modules/dicer/node_modules/string_decoder [email protected] /opt/app/node_modules/streamsearch [email protected] /opt/app/node_modules/busboy/node_modules/readable-stream [email protected] /opt/app/node_modules/busboy/node_modules/isarray [email protected] /opt/app/node_modules/busboy/node_modules/string_decoder [email protected] /opt/app/node_modules/concat-stream [email protected] /opt/app/node_modules/buffer-from [email protected] /opt/app/node_modules/typedarray [email protected] /opt/app/node_modules/object-assign [email protected] /opt/app/node_modules/preact [email protected] /opt/app/node_modules/string-hash [email protected] /opt/app/node_modules/nodebb-plugin-emoji-android [email protected] /opt/app/node_modules/emoji-datasource-google [email protected] /opt/app/node_modules/lodash.frompairs [email protected] /opt/app/node_modules/nodebb-plugin-markdown [email protected] /opt/app/node_modules/highlight.js [email protected] /opt/app/node_modules/markdown-it [email protected] /opt/app/node_modules/argparse [email protected] /opt/app/node_modules/sprintf-js [email protected] /opt/app/node_modules/linkify-it [email protected] /opt/app/node_modules/uc.micro [email protected] /opt/app/node_modules/mdurl [email protected] /opt/app/node_modules/markdown-it-checkbox [email protected] /opt/app/node_modules/nodebb-plugin-mentions [email protected] /opt/app/node_modules/html-entities [email protected] /opt/app/node_modules/nodebb-plugin-mentions/node_modules/validator [email protected] /opt/app/node_modules/nodebb-plugin-mentions/node_modules/xregexp [email protected] /opt/app/node_modules/nodebb-plugin-quickstart [email protected] /opt/app/node_modules/nodebb-plugin-session-sharing [email protected] /opt/app/node_modules/nodebb-plugin-session-sharing/node_modules/async [email protected] /opt/app/node_modules/nodebb-plugin-soundpack-default [email protected] /opt/app/node_modules/nodebb-plugin-spam-be-gone [email protected] /opt/app/node_modules/akismet [email protected] /opt/app/node_modules/request [email protected] /opt/app/node_modules/request/node_modules/aws-sign2 [email protected] /opt/app/node_modules/request/node_modules/form-data [email protected] /opt/app/node_modules/request/node_modules/har-validator [email protected] /opt/app/node_modules/request/node_modules/ajv [email protected] /opt/app/node_modules/fast-deep-equal [email protected] /opt/app/node_modules/fast-json-stable-stringify [email protected] /opt/app/node_modules/json-schema-traverse [email protected] /opt/app/node_modules/uri-js [email protected] /opt/app/node_modules/uri-js/node_modules/punycode [email protected] /opt/app/node_modules/request/node_modules/har-schema [email protected] /opt/app/node_modules/request/node_modules/http-signature [email protected] /opt/app/node_modules/request/node_modules/assert-plus [email protected] /opt/app/node_modules/request/node_modules/oauth-sign [email protected] /opt/app/node_modules/request/node_modules/performance-now [email protected] /opt/app/node_modules/request/node_modules/tough-cookie [email protected] /opt/app/node_modules/psl [email protected] /opt/app/node_modules/project-honeypot [email protected] /opt/app/node_modules/simple-recaptcha-new [email protected] /opt/app/node_modules/nodebb-rewards-essentials [email protected] /opt/app/node_modules/nodebb-theme-lavender [email protected] /opt/app/node_modules/nodebb-theme-persona [email protected] /opt/app/node_modules/pulling [email protected] /opt/app/node_modules/striptags [email protected] /opt/app/node_modules/nodebb-theme-santander [email protected] /opt/app/node_modules/nodebb-theme-slick [email protected] /opt/app/node_modules/nodebb-theme-vanilla [email protected] /opt/app/node_modules/nodebb-widget-essentials [email protected] /opt/app/node_modules/nodemailer [email protected] /opt/app/node_modules/passport [email protected] /opt/app/node_modules/passport-strategy [email protected] /opt/app/node_modules/pause [email protected] /opt/app/node_modules/passport-local [email protected] /opt/app/node_modules/pg-cursor [email protected] /opt/app/node_modules/postcss [email protected] /opt/app/node_modules/postcss/node_modules/supports-color [email protected] /opt/app/node_modules/postcss-clean [email protected] /opt/app/node_modules/clean-css [email protected] /opt/app/node_modules/postcss-clean/node_modules/postcss [email protected] /opt/app/node_modules/postcss-clean/node_modules/supports-color [email protected] /opt/app/node_modules/promise-polyfill [email protected] /opt/app/node_modules/prompt [email protected] /opt/app/node_modules/pkginfo [email protected] /opt/app/node_modules/read [email protected] /opt/app/node_modules/mute-stream [email protected] /opt/app/node_modules/revalidator [email protected] /opt/app/node_modules/utile [email protected] /opt/app/node_modules/utile/node_modules/async [email protected] /opt/app/node_modules/deep-equal [email protected] /opt/app/node_modules/i [email protected] /opt/app/node_modules/utile/node_modules/ncp [email protected] /opt/app/node_modules/rimraf [email protected] /opt/app/node_modules/prompt/node_modules/winston [email protected] /opt/app/node_modules/prompt/node_modules/async [email protected] /opt/app/node_modules/prompt/node_modules/winston/node_modules/colors [email protected] /opt/app/node_modules/prompt/node_modules/winston/node_modules/pkginfo [email protected] /opt/app/node_modules/rss [email protected] /opt/app/node_modules/rss/node_modules/mime-types [email protected] /opt/app/node_modules/rss/node_modules/mime-db [email protected] /opt/app/node_modules/xml [email protected] /opt/app/node_modules/sanitize-html [email protected] /opt/app/node_modules/lodash.clonedeep [email protected] /opt/app/node_modules/lodash.escaperegexp [email protected] /opt/app/node_modules/lodash.isstring [email protected] /opt/app/node_modules/lodash.mergewith [email protected] /opt/app/node_modules/srcset [email protected] /opt/app/node_modules/array-uniq [email protected] /opt/app/node_modules/serve-favicon [email protected] /opt/app/node_modules/serve-favicon/node_modules/ms [email protected] /opt/app/node_modules/serve-favicon/node_modules/safe-buffer [email protected] /opt/app/node_modules/sharp [email protected] /opt/app/node_modules/bindings [email protected] /opt/app/node_modules/file-uri-to-path [email protected] /opt/app/node_modules/color [email protected] /opt/app/node_modules/color-string [email protected] /opt/app/node_modules/simple-swizzle [email protected] /opt/app/node_modules/is-arrayish [email protected] /opt/app/node_modules/detect-libc [email protected] /opt/app/node_modules/fs-copy-file-sync [email protected] /opt/app/node_modules/nan [email protected] /opt/app/node_modules/npmlog [email protected] /opt/app/node_modules/are-we-there-yet [email protected] /opt/app/node_modules/delegates [email protected] /opt/app/node_modules/console-control-strings [email protected] /opt/app/node_modules/gauge [email protected] /opt/app/node_modules/aproba [email protected] /opt/app/node_modules/has-unicode [email protected] /opt/app/node_modules/signal-exit [email protected] /opt/app/node_modules/wide-align [email protected] /opt/app/node_modules/set-blocking [email protected] /opt/app/node_modules/prebuild-install [email protected] /opt/app/node_modules/expand-template [email protected] /opt/app/node_modules/github-from-package [email protected] /opt/app/node_modules/prebuild-install/node_modules/minimist [email protected] /opt/app/node_modules/napi-build-utils [email protected] /opt/app/node_modules/node-abi [email protected] /opt/app/node_modules/noop-logger [email protected] /opt/app/node_modules/os-homedir [email protected] /opt/app/node_modules/pump [email protected] /opt/app/node_modules/rc [email protected] /opt/app/node_modules/deep-extend [email protected] /opt/app/node_modules/rc/node_modules/minimist [email protected] /opt/app/node_modules/strip-json-comments [email protected] /opt/app/node_modules/prebuild-install/node_modules/simple-get [email protected] /opt/app/node_modules/decompress-response [email protected] /opt/app/node_modules/mimic-response [email protected] /opt/app/node_modules/simple-concat [email protected] /opt/app/node_modules/tar-fs [email protected] /opt/app/node_modules/chownr [email protected] /opt/app/node_modules/tar-fs/node_modules/pump [email protected] /opt/app/node_modules/which-pm-runs [email protected] /opt/app/node_modules/simple-get [email protected] /opt/app/node_modules/tar [email protected] /opt/app/node_modules/fs-minipass [email protected] /opt/app/node_modules/minipass [email protected] /opt/app/node_modules/minipass/node_modules/yallist [email protected] /opt/app/node_modules/minizlib [email protected] /opt/app/node_modules/tar/node_modules/yallist [email protected] /opt/app/node_modules/sitemap [email protected] /opt/app/node_modules/url-join [email protected] /opt/app/node_modules/socket.io [email protected] /opt/app/node_modules/socket.io/node_modules/debug [email protected] /opt/app/node_modules/engine.io [email protected] /opt/app/node_modules/base64id [email protected] /opt/app/node_modules/engine.io/node_modules/debug [email protected] /opt/app/node_modules/engine.io-parser [email protected] /opt/app/node_modules/after [email protected] /opt/app/node_modules/arraybuffer.slice [email protected] /opt/app/node_modules/base64-arraybuffer [email protected] /opt/app/node_modules/blob [email protected] /opt/app/node_modules/has-binary2 [email protected] /opt/app/node_modules/has-binary2/node_modules/isarray [email protected] /opt/app/node_modules/ws [email protected] /opt/app/node_modules/async-limiter [email protected] /opt/app/node_modules/ultron [email protected] /opt/app/node_modules/socket.io-adapter [email protected] /opt/app/node_modules/socket.io-client [email protected] /opt/app/node_modules/backo2 [email protected] /opt/app/node_modules/component-bind [email protected] /opt/app/node_modules/component-emitter [email protected] /opt/app/node_modules/socket.io-client/node_modules/debug [email protected] /opt/app/node_modules/engine.io-client [email protected] /opt/app/node_modules/component-inherit [email protected] /opt/app/node_modules/engine.io-client/node_modules/debug [email protected] /opt/app/node_modules/has-cors [email protected] /opt/app/node_modules/indexof [email protected] /opt/app/node_modules/parseqs [email protected] /opt/app/node_modules/better-assert [email protected] /opt/app/node_modules/callsite [email protected] /opt/app/node_modules/parseuri [email protected] /opt/app/node_modules/xmlhttprequest-ssl [email protected] /opt/app/node_modules/yeast [email protected] /opt/app/node_modules/object-component [email protected] /opt/app/node_modules/socket.io-parser [email protected] /opt/app/node_modules/socket.io-parser/node_modules/debug [email protected] /opt/app/node_modules/socket.io-parser/node_modules/isarray [email protected] /opt/app/node_modules/to-array [email protected] /opt/app/node_modules/socket.io-adapter-cluster [email protected] /opt/app/node_modules/socket.io-adapter-cluster/node_modules/debug [email protected] /opt/app/node_modules/socket.io-adapter-cluster/node_modules/ms [email protected] /opt/app/node_modules/socket.io-adapter-mongo [email protected] /opt/app/node_modules/socket.io-adapter-mongo/node_modules/debug [email protected] /opt/app/node_modules/socket.io-adapter-mongo/node_modules/ms [email protected] /opt/app/node_modules/mongodb-uri [email protected] /opt/app/node_modules/msgpack-js [email protected] /opt/app/node_modules/bops [email protected] /opt/app/node_modules/bops/node_modules/base64-js [email protected] /opt/app/node_modules/to-utf8 [email protected] /opt/app/node_modules/mubsub [email protected] /opt/app/node_modules/mubsub/node_modules/mongodb [email protected] /opt/app/node_modules/mubsub/node_modules/readable-stream [email protected] /opt/app/node_modules/mubsub/node_modules/process-nextick-args [email protected] /opt/app/node_modules/mubsub/node_modules/string_decoder [email protected] /opt/app/node_modules/uid2 [email protected] /opt/app/node_modules/socket.io-adapter-postgres [email protected] /opt/app/node_modules/socket.io-adapter-postgres/node_modules/debug [email protected] /opt/app/node_modules/socket.io-adapter-postgres/node_modules/ms [email protected] /opt/app/node_modules/notepack.io [email protected] /opt/app/node_modules/socket.io-redis [email protected] /opt/app/node_modules/socket.io-redis/node_modules/notepack.io [email protected] /opt/app/node_modules/socketio-wildcard [email protected] /opt/app/node_modules/spdx-license-list [email protected] /opt/app/node_modules/spider-detector [email protected] /opt/app/node_modules/toobusy-js [email protected] /opt/app/node_modules/uglify-es [email protected] /opt/app/node_modules/uglify-es/node_modules/commander [email protected] /opt/app/node_modules/util.promisify [email protected] /opt/app/node_modules/define-properties [email protected] /opt/app/node_modules/object-keys [email protected] /opt/app/node_modules/object.getownpropertydescriptors [email protected] /opt/app/node_modules/es-abstract [email protected] /opt/app/node_modules/es-to-primitive [email protected] /opt/app/node_modules/is-callable [email protected] /opt/app/node_modules/is-date-object [email protected] /opt/app/node_modules/is-symbol [email protected] /opt/app/node_modules/has-symbols [email protected] /opt/app/node_modules/function-bind [email protected] /opt/app/node_modules/has [email protected] /opt/app/node_modules/is-regex [email protected] /opt/app/node_modules/validator [email protected] /opt/app/node_modules/winston [email protected] /opt/app/node_modules/winston/node_modules/async [email protected] /opt/app/node_modules/winston/node_modules/colors [email protected] /opt/app/node_modules/xregexp @babel/[email protected] /opt/app/node_modules/@babel/runtime-corejs2 [email protected] /opt/app/node_modules/@babel/runtime-corejs2/node_modules/regenerator-runtime [email protected] /opt/app/node_modules/zxcvbn [email protected] /opt/app/node_modules/asap [email protected] /opt/app/node_modules/buffer-equal-constant-time [email protected] /opt/app/node_modules/ecdsa-sig-formatter [email protected] /opt/app/node_modules/jwa [email protected] /opt/app/node_modules/jws [email protected] /opt/app/node_modules/memory-pager [email protected] /opt/app/node_modules/promise [email protected] /opt/app/node_modules/prr [email protected] /opt/app/node_modules/saslprep [email protected] /opt/app/node_modules/sparse-bitfield [email protected] /opt/app/node_modules/errno [email protected] /opt/app/node_modules/image-size [email protected] /opt/app/node_modules/jsonwebtoken [email protected] /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 [email protected] npm info using [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info lifecycle [email protected]~preinstall: [email protected] npm info linkStuff [email protected] npm info lifecycle [email protected]~install: [email protected] > [email protected] 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 [email protected] gyp info using [email protected] | 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 [email protected]~postinstall: [email protected] npm info linkStuff [email protected] npm info lifecycle [email protected]~install: [email protected] npm info lifecycle [email protected]~postinstall: [email protected] 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 !!!!