zone-eu / zone-mta-template

Template application for ZoneMTA
39 stars 24 forks source link

Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. #15

Open YosuCadilla opened 3 years ago

YosuCadilla commented 3 years ago

Hi guys,

I just installed zone-mta-template on Ubuntu 20.04 using the official Ubuntu repos (so not latest versions).

Ubuntu: 20.04 Node: v10.19.0 Mongo: db version v3.6.8 Redis server v=5.0.7 sha=00000000:0 malloc=jemalloc-5.2.1 bits=64 build=636cde3b5c7a3923

After completing the installation I am recursively getting this msg on the console: Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead.

Not sure if it needs fixing or not.

Down below is the full install log, these are the 2 highlights

root@mta:~/zone-mta-template# npm install --production npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported

AND

info App ------------------------ zone-mta@2.4.3 ----------------------- info App info SMTP/feeder SMTP feeder MTA server started listening on port 2525 info QS Queue server started info API API server started info Redis/409 Redis ready to take connections info mongo Setup 10 indexes Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead.

Here the full installation process

root@mta:~/zone-mta-template# npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sensible defaults.

See npm help json for definitive documentation on these fields and exactly what they do.

Use npm install <pkg> afterwards to install a package and save it as a dependency in the package.json file.

Press ^C at any time to quit. package name: (zone-mta-template) version: (1.7.0) license: (EUPL-1.1+) About to write to /root/zone-mta-template/package.json:

{ "name": "zone-mta-template", "private": true, "version": "1.7.0", "description": "ZoneMTA example application", "main": "index.js", "scripts": { "start": "node index.js --config=config/zonemta.toml", "config": "NODE_CONFIG_ONLY=true npm start" }, "repository": { "type": "git", "url": "git+https://github.com/zone-eu/zone-mta-template.git" }, "keywords": [], "author": "Andris Reinman", "license": "EUPL-1.1+", "bugs": { "url": "https://github.com/zone-eu/zone-mta-template/issues" }, "homepage": "https://github.com/zone-eu/zone-mta-template#readme", "dependencies": { "zone-mta": "2.4.3", "zonemta-avast": "1.0.0", "zonemta-delivery-counters": "1.0.1", "zonemta-limiter": "1.0.0", "zonemta-loop-breaker": "1.0.2" }, "devDependencies": { "eslint": "^7.21.0", "eslint-config-nodemailer": "1.2.0", "eslint-config-prettier": "8.1.0" } }

Is this OK? (yes) root@mta:~/zone-mta-template# root@mta:~/zone-mta-template# root@mta:~/zone-mta-template# npm install --production npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported

dtrace-provider@0.8.8 install /root/zone-mta-template/node_modules/dtrace-provider node-gyp rebuild || node suppress-error.js

make: Entering directory '/root/zone-mta-template/node_modules/dtrace-provider/build' TOUCH Release/obj.target/DTraceProviderStub.stamp make: Leaving directory '/root/zone-mta-template/node_modules/dtrace-provider/build' added 200 packages from 230 contributors and audited 315 packages in 6.954s

17 packages are looking for funding run npm fund for details

found 0 vulnerabilities

root@mta:~/zone-mta-template# npm start

zone-mta-template@1.7.0 start /root/zone-mta-template node index.js --config=config/zonemta.toml

info App --------------------------------------------------------------- info App info App ███████╗ ██████╗ ███╗ ██╗███████╗███╗ ███╗████████╗ █████╗ info App ╚══███╔╝██╔═══██╗████╗ ██║██╔════╝████╗ ████║╚══██╔══╝██╔══██╗ info App ███╔╝ ██║ ██║██╔██╗ ██║█████╗ ██╔████╔██║ ██║ ███████║ info App ███╔╝ ██║ ██║██║╚██╗██║██╔══╝ ██║╚██╔╝██║ ██║ ██╔══██║ info App ███████╗╚██████╔╝██║ ╚████║███████╗██║ ╚═╝ ██║ ██║ ██║ ██║ info App ╚══════╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ info App info App ------------------------ zone-mta@2.4.3 ----------------------- info App info SMTP/feeder SMTP feeder MTA server started listening on port 2525 info QS Queue server started info API API server started info Redis/409 Redis ready to take connections info mongo Setup 10 indexes Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. info Queue Sending queue initialized info Child/default/423 [efa2b8520e54e1dfde91] Spawning sender process for default info Redis/422 Redis ready to take connections info SMTP/feeder/422 2 plugins loaded info Redis/422 Redis ready to take connections info SMTP/feeder/422 SMTP feeder MTA server started info DNS/423 Loaded DNS cache info Sender/default/423 [efa2b8520e54e1dfde91] Starting sending for default info ConnPool/423 Connection pool is ready to take connections info Redis/423 Redis ready to take connections info Child/bounces/446 [247cfd32db4112209e35] Spawning sender process for bounces info DNS/446 Loaded DNS cache info Sender/bounces/446 [247cfd32db4112209e35] Starting sending for bounces info ConnPool/446 Connection pool is ready to take connections info Redis/446 Redis ready to take connections info Child/routed/458 [3afa493eaf21a1940390] Spawning sender process for routed info DNS/458 Loaded DNS cache info Sender/routed/458 [3afa493eaf21a1940390] Starting sending for routed info ConnPool/458 Connection pool is ready to take connections info Redis/458 Redis ready to take connections Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead. Top-level use of w, wtimeout, j, and fsync is deprecated. Use writeConcern instead.

YosuCadilla commented 3 years ago

OK Seems to be a bug on MongoDB: https://jira.mongodb.org/browse/NODE-3114

Upgrading MongoDB should fix this, it is supposed to be fixed with version 3.6.5 but I am already running version v3.6.8

Related? https://github.com/mongodb/node-mongodb-native/pull/2743