Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YosuCadilla opened this issue Mar 4, 2021 · 1 comment

Comments

@YosuCadilla
Copy link
Contributor

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 [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: this library is no longer supported

AND

info App ------------------------ [email protected] -----------------------
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 [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: this library is no longer supported

[email protected] 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

[email protected] 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 ------------------------ [email protected] -----------------------
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
Copy link
Contributor Author

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?
mongodb/node-mongodb-native#2743

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant