ezpaarse-project / ezpaarse

ezPAARSE can ingest your (proxy) log files and show how users access suscribed electronic ressources.
http://www.ezpaarse.org
Other
68 stars 26 forks source link

[Debian] Fresh Install fails on MongoDB connection check #170

Closed fbridebian closed 10 months ago

fbridebian commented 1 year ago

Since EZPaarse 3.9.0, the make script fails on the MongoDB step when I'm trying a fresh install on Debian 11.

It works fine with EZPaarse 3.8.0 and the previous versions.

Local Config :

Main shell commands used for EZpaarse 3.9.1 on a fresh Debian 11 Install :

#Main Pre-requisites
apt-get install git make curl python3 gcc build-essential -y
#Specific MongoDB commands
apt-get install gnupg -y
curl -fsSL https://pgp.mongodb.com/server-6.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg] http://repo.mongodb.org/apt/debian bullseye/mongodb-org/6.0 main" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list
apt-get update
apt-get install -y mongodb-org
systemctl daemon-reload
systemctl start mongod
systemctl enable mongod
#EZPaarse install commands
cd /usr/local
git clone https://github.com/ezpaarse-project/ezpaarse.git
cd /usr/local/ezpaarse
git checkout 3.9.1
make

Full log results :

Created symlink /etc/systemd/system/multi-user.target.wants/mongod.service → /lib/systemd/system/mongod.service.                                                                                                   
Cloning into 'ezpaarse'...                                                                                                                                                                                         
remote: Enumerating objects: 35704, done.                                                                                                                                                                          
remote: Counting objects: 100% (3591/3591), done.                                                                                                                                                                  
remote: Compressing objects: 100% (763/763), done.                                                                                                                                                                 
remote: Total 35704 (delta 2296), reused 3430 (delta 2196), pack-reused 32113                                                                                                                                      
Receiving objects: 100% (35704/35704), 43.28 MiB | 13.17 MiB/s, done.                                                                                                                                              
Resolving deltas: 100% (21218/21218), done.                                                                                                                                                                        
Note: switching to '3.9.1'.                                                                                                                                                                                        

You are in 'detached HEAD' state. You can look around, make experimental                                                                                                                                           
changes and commit them, and you can discard any commits you make in this                                                                                                                                          
state without impacting any branches by switching back to a branch.                                                                                                                                                

If you want to create a new branch to retain commits you create, you may                                                                                                                                           
do so (now or later) by using -c with the switch command. Example:                                                                                                                                                 

  git switch -c <new-branch-name>                                                                                                                                                                                  

Or undo this operation with:                                                                                                                                                                                                                                           
  git switch -                                                                                                                                                                                                     

Turn off this advice by setting config variable advice.detachedHead to false                                                                                                                                                                                           
HEAD is now at b4701efb Version 3.9.1                                                                                                                                                                              
Building Node.js...                                                                                      
./bin/buildnode: line 13: node: command not found                                                                                                                                                                  
Downloading NVM...                                                                                                                                                                                                 Cloning into '/usr/local/ezpaarse/build/nvm'...
remote: Enumerating objects: 9051, done.                                                                                                                                                                           remote: Counting objects: 100% (1830/1830), done.
remote: Compressing objects: 100% (111/111), done.                                                                                                                                                                 
remote: Total 9051 (delta 1764), reused 1730 (delta 1719), pack-reused 7221                 
Receiving objects: 100% (9051/9051), 3.28 MiB | 1.34 MiB/s, done.                                                                                                                                                  Resolving deltas: 100% (5790/5790), done.                                                                                                                                                                          
Downloading and installing node v18.16.0...                                                                                                                                                                        
Downloading https://nodejs.org/dist/v18.16.0/node-v18.16.0-linux-x64.tar.xz...
############################################################################################################################################################################################################ 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v18.16.0 (npm v9.5.1)
Creating default alias: default -> 18.16.0 (-> v18.16.0)
Now using node v18.16.0 (npm v9.5.1)
default -> 18.16.0 (-> v18.16.0)
Installing node.js dependencies...
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated xlsjs@1.0.1: xlsjs has been merged into xlsx
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaS
cript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated 
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated lsof@0.1.0: No longer maintained
npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated consolidate@0.15.1: Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardem
ail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated boom@7.3.0: This module has moved and is now available at @hapi/boom. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.
npm WARN deprecated castor-load-csv@2.1.2: This project is not maintained anymore.
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated castor-load@4.6.1: This project is not maintained anymore.
npm WARN deprecated docsearch.js@2.6.3: This package has been deprecated and is no longer maintained. Please use @docsearch/js.
npm WARN deprecated bson@1.0.9: Fixed a critical issue with BSON serialization documented in CVE-2019-2391, see https://bit.ly/2KcpXdo for more details
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for 
details.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for 
details.
npm WARN deprecated mkdirp@0.3.0: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated highlight.js@9.18.5: Support has ended for 9.x series. Upgrade to @latest
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for 
details.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for 
details.
npm WARN deprecated bson@0.2.22: Fixed a critical issue with BSON serialization documented in CVE-2019-2391, see https://bit.ly/2KcpXdo for more details
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions co
uld cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

added 2475 packages, and audited 2476 packages in 1m 

245 packages are looking for funding
  run `npm fund` for details

72 vulnerabilities (3 low, 22 moderate, 32 high, 15 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
npm notice                  
npm notice New minor version of npm available! 9.5.1 -> 9.8.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.8.0
npm notice Run npm install -g npm@9.8.0 to update!
npm notice 
Updating platforms...
Cloning into 'platforms'...
remote: Enumerating objects: 17268, done.
remote: Counting objects: 100% (376/376), done.
remote: Compressing objects: 100% (255/255), done.
remote: Total 17268 (delta 116), reused 349 (delta 105), pack-reused 16892
Receiving objects: 100% (17268/17268), 105.01 MiB | 14.10 MiB/s, done.
Resolving deltas: 100% (8366/8366), done.
Updating middlewares...
Cloning into 'middlewares'...
remote: Enumerating objects: 1390, done.
remote: Counting objects: 100% (589/589), done.
remote: Compressing objects: 100% (306/306), done.
remote: Total 1390 (delta 305), reused 541 (delta 283), pack-reused 801
Receiving objects: 100% (1390/1390), 336.69 KiB | 47.00 KiB/s, done.
Resolving deltas: 100% (616/616), done.
npm WARN old lockfile 
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile 
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile 
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for 
details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated mkdirp@0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated axios@0.18.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410

added 195 packages, and audited 196 packages in 5s

6 packages are looking for funding
  run `npm fund` for details

15 vulnerabilities (9 moderate, 3 high, 3 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

Updating exclusions...
Cloning into 'exclusions'...
remote: Enumerating objects: 141, done.
remote: Total 141 (delta 0), reused 0 (delta 0), pack-reused 141
Receiving objects: 100% (141/141), 3.54 MiB | 16.49 MiB/s, done.
Resolving deltas: 100% (66/66), done.
Updating resources...
Cloning into 'resources'...
remote: Enumerating objects: 724, done.
remote: Counting objects: 100% (183/183), done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 724 (delta 113), reused 174 (delta 112), pack-reused 541
Receiving objects: 100% (724/724), 150.80 KiB | 1.84 MiB/s, done.
Resolving deltas: 100% (457/457), done.
Building web interface...

> ezpaarse@3.9.1 build
> nuxt build --no-generate

ℹ Production build                                                                                                                                                                                       13:54:19
ℹ Bundling only for client side                                                                                                                                                                          13:54:19
ℹ Target: server                                                                                                                                                                                         13:54:19
✔ Builder initialized                                                                                                                                                                                    13:54:19
✔ Nuxt files generated                                                                                                                                                                                   13:54:19

✔ Client                                                                                                 
  Compiled successfully in 16.37s

Hash: f8f3b23bc0746b7eec66                                                                                                                                                                                         
Version: webpack 4.46.0
Time: 16375ms   
Built at: 07/18/2023 1:54:36 PM
                                          Asset       Size  Chunks                                Chunk Names
                 ../server/client.manifest.json   44.4 KiB          [emitted]                     
                                     098274d.js   9.74 KiB       8  [emitted] [immutable]         pages/admin/platforms
                                     11de630.js     18 KiB       4  [emitted] [immutable]         lang-en.json
                                     160ded9.js   9.93 KiB       7  [emitted] [immutable]         pages/admin/middlewares                                                                                        
                                     2a5b1ca.js   7.06 KiB      13  [emitted] [immutable]         pages/index
                                     3590416.js   14.2 KiB       9  [emitted] [immutable]         pages/admin/updates
                                     3ff8a62.js   3.27 KiB      17  [emitted] [immutable]         pages/profile
                                     43ea922.js   18.8 KiB      12  [emitted] [immutable]         pages/format
                                     46038a9.js    145 KiB       2  [emitted] [immutable]         app
                                     5d16d9a.js   64.2 KiB      16  [emitted] [immutable]         pages/process
                                     61a7e7d.js   2.19 KiB      14  [emitted] [immutable]         pages/password/_uuid
                                     7096632.js   20.3 KiB       5  [emitted] [immutable]         lang-fr.json
                                     73f4535.js   76.4 KiB       0  [emitted] [immutable]         vendors/pages/admin/middlewares/pages/process
                                     74be257.js    8.6 KiB      10  [emitted] [immutable]         pages/admin/users
                                     7c1098a.js  903 bytes      11  [emitted] [immutable]         pages/feedback
                                     830c4c2.js   16.1 KiB       6  [emitted] [immutable]         pages/admin/jobs
                                     894fcc4.js   25.9 KiB       1  [emitted] [immutable]         vendors/pages/format/pages/process
                                     8b0533f.js    1.8 KiB      15  [emitted] [immutable]         pages/password/index
                                     90f1307.js   8.53 KiB      18  [emitted] [immutable]         pages/report/_uuid
                                       LICENSES   95.6 KiB          [emitted]                     
                                     b158353.js    284 KiB       3  [emitted] [immutable]  [big]  commons/app
                                     d20fd0b.js   1.99 MiB      20  [emitted] [immutable]  [big]  vendors/app
                                     fb1ee6e.js    2.5 KiB      19  [emitted] [immutable]         runtime
                                     fd0696a.js   4.05 KiB      21  [emitted] [immutable]         
 fonts/materialdesignicons-webfont.20b6ebf.woff    563 KiB          [emitted] [immutable]  [big]  
  fonts/materialdesignicons-webfont.5ce4e52.eot   1.22 MiB          [emitted] [immutable]  [big]  
fonts/materialdesignicons-webfont.a295367.woff2    387 KiB          [emitted] [immutable]  [big]  
  fonts/materialdesignicons-webfont.d10ac4e.ttf   1.22 MiB          [emitted] [immutable]  [big]  
                              img/H.8579d2b.png   2.71 KiB          [emitted] [immutable]         
                              img/P.111ab03.png   2.77 KiB          [emitted] [immutable]         
                             img/en.195316b.png   14.9 KiB          [emitted] [immutable]         
                 img/icon-analogist.908b1a8.png   2.19 KiB          [emitted] [immutable]         
                     img/logo-white.5197125.svg    8.3 KiB          [emitted] [immutable]         
                           img/logo.923aee7.png   17.7 KiB          [emitted] [immutable]         
 + 1 hidden asset
Entrypoint app [big] = fb1ee6e.js b158353.js d20fd0b.js 46038a9.js

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  fonts/materialdesignicons-webfont.5ce4e52.eot (1.22 MiB)
  fonts/materialdesignicons-webfont.a295367.woff2 (387 KiB)
  fonts/materialdesignicons-webfont.20b6ebf.woff (563 KiB)
  fonts/materialdesignicons-webfont.d10ac4e.ttf (1.22 MiB)
  b158353.js (284 KiB)
  d20fd0b.js (1.99 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (1000 KiB). This can impact web performance.
Entrypoints:
  app (2.41 MiB)
      fb1ee6e.js
      b158353.js
      d20fd0b.js
      46038a9.js

ℹ Ready to run nuxt start                                                                                                                                                                                13:54:36
Operating system
  ℹ linux 5.10.0-18-amd64 (Debian)
Environment
  ✔ Found: /usr/bin/env
App name
  ✔ ezpaarse
Administrator email
  ✔ ezpaarse@couperin.org
Server port
  ℹ 59599
  ✔ Port is available
Node.js
  ✔ /usr/local/ezpaarse/build/nvm/versions/node/v18.16.0/bin/node
MongoDB
  ✖ Cannot connect to mongodb://localhost:27017/ezpaarse

✖ There are some issues. Please fix them all before going any further.
make: *** [Makefile:14: checkconfig] Error 1

Main shell commands used for EZpaarse 3.8.0 on a fresh Debian 11 Install :

#Main Pre-requisites
apt-get install git make curl python3 gcc build-essential -y
#Specific MongoDB commands
apt-get install gnupg -y
curl -fsSL https://pgp.mongodb.com/server-6.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg] http://repo.mongodb.org/apt/debian bullseye/mongodb-org/6.0 main" | tee /etc/apt/sources.list.d/mongodb-org-6.0.list
apt-get update
apt-get install -y mongodb-org
systemctl daemon-reload
systemctl start mongod
systemctl enable mongod
#EZPaarse install commands
cd /usr/local
git clone https://github.com/ezpaarse-project/ezpaarse.git
cd /usr/local/ezpaarse
git checkout 3.8.0
make

Full log results :

Created symlink /etc/systemd/system/multi-user.target.wants/mongod.service → /lib/systemd/system/mongod.service.                  
Cloning into 'ezpaarse'...                                                                                                                                                                                         
remote: Enumerating objects: 35704, done.                                                                                                                                                                          
remote: Counting objects: 100% (3591/3591), done.                                                                                                                                                                  
remote: Compressing objects: 100% (763/763), done.                                                       
remote: Total 35704 (delta 2296), reused 3430 (delta 2196), pack-reused 32113
Receiving objects: 100% (35704/35704), 43.28 MiB | 4.81 MiB/s, done.   
Resolving deltas: 100% (21218/21218), done.                                                              
Note: switching to '3.8.0'.                   

You are in 'detached HEAD' state. You can look around, make experimental 
changes and commit them, and you can discard any commits you make in this                                
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may                                 
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>       

Or undo this operation with:                                                                             

  git switch -                                                                                           

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 64fd30b6 Version 3.8.0                                                                    
Building Node.js...                              
./bin/buildnode: line 13: node: command not found                                                        
Downloading NVM...                                                                                       
Cloning into '/usr/local/ezpaarse/build/nvm'...
remote: Enumerating objects: 9051, done.                                                                 
remote: Counting objects: 100% (1830/1830), done.                                                        
remote: Compressing objects: 100% (111/111), done.                                                       
remote: Total 9051 (delta 1764), reused 1730 (delta 1719), pack-reused 7221                              
Receiving objects: 100% (9051/9051), 3.28 MiB | 2.65 MiB/s, done.
Resolving deltas: 100% (5790/5790), done.  
Downloading and installing node v14.17.6...                                                              
Downloading https://nodejs.org/dist/v14.17.6/node-v14.17.6-linux-x64.tar.xz...                                                                                                                                     
############################################################################################################################################################################################################ 100.0%
Computing checksum with sha256sum
Checksums matched!                          
Now using node v14.17.6 (npm v6.14.15)                                                                   
Creating default alias: default -> 14.17.6 (-> v14.17.6)
Now using node v14.17.6 (npm v6.14.15)  
default -> 14.17.6 (-> v14.17.6)               
Installing node.js dependencies...                                                                                                                                                                                 

> bson@0.2.22 install /usr/local/ezpaarse/node_modules/tingodb/node_modules/bson                                                                                                                                   
> (node-gyp rebuild 2> builderror.log) || (exit 0)                                                                                                                                                                 

make[1]: Entering directory '/usr/local/ezpaarse/node_modules/tingodb/node_modules/bson/build'                                                                                                                     
  CXX(target) Release/obj.target/bson/ext/bson.o                                                                                                                                                                   
make[1]: Leaving directory '/usr/local/ezpaarse/node_modules/tingodb/node_modules/bson/build'                                                                                                                      

> core-js@3.25.0 postinstall /usr/local/ezpaarse/node_modules/@vue/babel-preset-app/node_modules/core-js                                                                                                           
> node -e "try{require('./postinstall')}catch(e){}"                                                                                                                                                                

> core-js@3.25.0 postinstall /usr/local/ezpaarse/node_modules/@vuepress/core/node_modules/core-js                                                                                                                  
> node -e "try{require('./postinstall')}catch(e){}"                                                                                                                                                                

> core-js@2.6.12 postinstall /usr/local/ezpaarse/node_modules/core-js                                                                                                                                              
> node -e "try{require('./postinstall')}catch(e){}"                                                                                                                                                                

> esbuild@0.14.7 postinstall /usr/local/ezpaarse/node_modules/esbuild                                                                                                                                              
> node install.js                                                                                                                                                                                                  

> highlight.js@9.18.5 postinstall /usr/local/ezpaarse/node_modules/highlight.js
> node deprecated.js                                                                                     

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  Verion 9 of Highlight.js has reached EOL.  It will no longer                                                                                                                                                     
  be supported or receive security updates in the future.                                               
  Please upgrade to version 10 or encourage your indirect                                                                                                                                                          
  dependencies to do so.                                                                                                                                                                                           

  For more info:                                                                                                                                                                                                   

  https://github.com/highlightjs/highlight.js/issues/2877
  https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*                                                                                                                                               

> nuxt@2.15.8 postinstall /usr/local/ezpaarse/node_modules/nuxt
> opencollective || exit 0

                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@@%##%@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@#+++*%@@@%%%@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@#++*++*%@%*+*#@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@%#++*%%*++#*++++#%@@@@@@@@@@@
                                                                                      @@@@@@@@@@%*++#%@@%*+++*%#++*%@@@@@@@@@@
                                                                                      @@@@@@@@@%*++#@@@@@#++*%@@#++*%@@@@@@@@@
                                                                                      @@@@@@@@%*++#@@@@%#++*%@@@@#++*%@@@@@@@@
                                                                                      @@@@@@@#+++#%%%%#*++#%@%%%%%#+++#@@@@@@@
                                                                                      @@@@@@%*++++++++++*#@%#+++++++++*%@@@@@@
                                                                                      @@@@@@@%########%%%@@%##########%@@@@@@@
                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
                                                                                      @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

                                                                                           Thanks for installing nuxtjs 🙏
                                                                                   Please consider donating to our open collective
                                                                                          to help us maintain this package.

                                                                                              Number of contributors: 0
                                                                                               Number of backers: 514
                                                                                               Annual budget: $165,783
                                                                                              Current balance: $13,139

                                                                            👉  Donate: https://opencollective.com/nuxtjs/donate

> vuepress@1.9.7 postinstall /usr/local/ezpaarse/node_modules/vuepress
> opencollective-postinstall || exit 0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/pm2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/nodemon/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/mocha/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-windows-arm64@0.14.7 (node_modules/esbuild-windows-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-windows-arm64@0.14.7: wanted {"os":"win32","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-windows-64@0.14.7 (node_modules/esbuild-windows-64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-windows-64@0.14.7: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-windows-32@0.14.7 (node_modules/esbuild-windows-32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-windows-32@0.14.7: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-sunos-64@0.14.7 (node_modules/esbuild-sunos-64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-sunos-64@0.14.7: wanted {"os":"sunos","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-openbsd-64@0.14.7 (node_modules/esbuild-openbsd-64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-openbsd-64@0.14.7: wanted {"os":"openbsd","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-netbsd-64@0.14.7 (node_modules/esbuild-netbsd-64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-netbsd-64@0.14.7: wanted {"os":"netbsd","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-ppc64le@0.14.7 (node_modules/esbuild-linux-ppc64le):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-ppc64le@0.14.7: wanted {"os":"linux","arch":"ppc64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-mips64le@0.14.7 (node_modules/esbuild-linux-mips64le):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-mips64le@0.14.7: wanted {"os":"linux","arch":"mips64el"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-arm64@0.14.7 (node_modules/esbuild-linux-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-arm64@0.14.7: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-arm@0.14.7 (node_modules/esbuild-linux-arm):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-arm@0.14.7: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-linux-32@0.14.7 (node_modules/esbuild-linux-32):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-linux-32@0.14.7: wanted {"os":"linux","arch":"ia32"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-freebsd-arm64@0.14.7 (node_modules/esbuild-freebsd-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-freebsd-arm64@0.14.7: wanted {"os":"freebsd","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-freebsd-64@0.14.7 (node_modules/esbuild-freebsd-64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-freebsd-64@0.14.7: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-darwin-arm64@0.14.7 (node_modules/esbuild-darwin-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-darwin-arm64@0.14.7: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-darwin-64@0.14.7 (node_modules/esbuild-darwin-64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-darwin-64@0.14.7: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: esbuild-android-arm64@0.14.7 (node_modules/esbuild-android-arm64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for esbuild-android-arm64@0.14.7: wanted {"os":"android","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/@nuxt/components/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/@nuxt/builder/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 2767 packages from 1517 contributors and audited 2802 packages in 74.578s

183 packages are looking for funding
  run `npm fund` for details

found 241 vulnerabilities (5 low, 103 moderate, 95 high, 38 critical)                                                                                                                                              
  run `npm audit fix` to fix them, or `npm audit` for details
Updating platforms...                                                                                    
Cloning into 'platforms'...
remote: Enumerating objects: 17268, done.
remote: Counting objects: 100% (376/376), done.                                                          
remote: Compressing objects: 100% (255/255), done.                                                       
remote: Total 17268 (delta 116), reused 349 (delta 105), pack-reused 16892
Receiving objects: 100% (17268/17268), 105.01 MiB | 16.39 MiB/s, done.
Resolving deltas: 100% (8366/8366), done.
Updating middlewares...
Cloning into 'middlewares'...
remote: Enumerating objects: 1390, done.
remote: Counting objects: 100% (589/589), done.
remote: Compressing objects: 100% (306/306), done.
remote: Total 1390 (delta 305), reused 541 (delta 283), pack-reused 801
Receiving objects: 100% (1390/1390), 336.69 KiB | 6.00 KiB/s, done.
Resolving deltas: 100% (616/616), done.
npm WARN middlewares@1.0.0 No license field.

added 195 packages from 584 contributors and audited 196 packages in 2.462s

6 packages are looking for funding
  run `npm fund` for details

found 15 vulnerabilities (10 moderate, 4 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details
Updating exclusions...
Cloning into 'exclusions'...
remote: Enumerating objects: 141, done.
remote: Total 141 (delta 0), reused 0 (delta 0), pack-reused 141
Receiving objects: 100% (141/141), 3.54 MiB | 14.34 MiB/s, done.
Resolving deltas: 100% (66/66), done.
Updating resources...
Cloning into 'resources'...
remote: Enumerating objects: 724, done.
remote: Counting objects: 100% (183/183), done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 724 (delta 113), reused 174 (delta 112), pack-reused 541
Receiving objects: 100% (724/724), 150.80 KiB | 3.59 MiB/s, done.
Resolving deltas: 100% (457/457), done.
Building web interface...

> ezpaarse@3.8.0 build /usr/local/ezpaarse
> nuxt build --no-generate

ℹ Production build                                                                                                                                                                                       13:54:47
ℹ Bundling only for client side                                                                                                                                                                          13:54:47
ℹ Target: server                                                                                                                                                                                         13:54:47
✔ Builder initialized                                                                                                                                                                                    13:54:47
✔ Nuxt files generated                                                                                                                                                                                   13:54:47

 WARN  Browserslist: caniuse-lite is outdated. Please run:                                                                                                                                               13:54:47
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating

✔ Client                                                                                                 
  Compiled successfully in 14.86s

Hash: 5d238e04129e8cfc1301
Version: webpack 4.46.0
Time: 14864ms   
Built at: 07/18/2023 1:55:02 PM
                                          Asset       Size  Chunks                                Chunk Names
                 ../server/client.manifest.json   38.2 KiB          [emitted]                     
                                     0013161.js    145 KiB       2  [emitted] [immutable]         app
                                     1134544.js    2.5 KiB      19  [emitted] [immutable]         runtime                                                                                                          
                                     143ac75.js   20.5 KiB      12  [emitted] [immutable]         pages/format
                                     15194ff.js   17.6 KiB       4  [emitted] [immutable]         lang-en.json
                                     2880781.js   4.05 KiB      21  [emitted] [immutable]         
                                     2e6adf7.js   1.82 KiB      15  [emitted] [immutable]         pages/password/index
                                     34013bb.js    224 KiB       3  [emitted] [immutable]         commons/app
                                     34d15e1.js   1.92 MiB      20  [emitted] [immutable]  [big]  vendors/app
                                     3f7c8e3.js   2.21 KiB      14  [emitted] [immutable]         pages/password/_uuid
                                     416c260.js     70 KiB       0  [emitted] [immutable]         vendors/pages/admin/middlewares/pages/process
                                     61aece3.js  930 bytes      11  [emitted] [immutable]         pages/feedback
                                     775cb33.js     65 KiB      16  [emitted] [immutable]         pages/process
                                     8194919.js   8.67 KiB      13  [emitted] [immutable]         pages/index
                                     849cb93.js   3.28 KiB      17  [emitted] [immutable]         pages/profile
                                     9436086.js   25.9 KiB       1  [emitted] [immutable]         vendors/pages/format/pages/process
                                     9d00593.js   9.73 KiB       8  [emitted] [immutable]         pages/admin/platforms
                                       LICENSES   95.3 KiB          [emitted]                     
                                     a9346e5.js     20 KiB       5  [emitted] [immutable]         lang-fr.json
                                     b7bf792.js   11.5 KiB       9  [emitted] [immutable]         pages/admin/updates
                                     cdaf6aa.js   9.79 KiB       7  [emitted] [immutable]         pages/admin/middlewares
                                     d40e487.js   8.57 KiB      10  [emitted] [immutable]         pages/admin/users
                                     e0ed505.js   17.7 KiB       6  [emitted] [immutable]         pages/admin/jobs
                                     f50268c.js     10 KiB      18  [emitted] [immutable]         pages/report/_uuid
  fonts/materialdesignicons-webfont.28ce6d3.ttf   1.19 MiB          [emitted] [immutable]  [big]  
fonts/materialdesignicons-webfont.626f06d.woff2    376 KiB          [emitted] [immutable]  [big]  
  fonts/materialdesignicons-webfont.ac209be.eot   1.19 MiB          [emitted] [immutable]  [big]  
 fonts/materialdesignicons-webfont.e3dde18.woff    549 KiB          [emitted] [immutable]  [big]  
                              img/H.d712ec2.png   2.71 KiB          [emitted] [immutable]         
                              img/P.8404827.png   2.77 KiB          [emitted] [immutable]         
                             img/en.e9ee0bc.png   14.9 KiB          [emitted] [immutable]         
                 img/icon-analogist.236d6b7.png   2.19 KiB          [emitted] [immutable]         
                     img/logo-white.aa96596.svg    8.3 KiB          [emitted] [immutable]         
                           img/logo.5eaa569.png   17.7 KiB          [emitted] [immutable]         
 + 1 hidden asset
Entrypoint app [big] = 1134544.js 34013bb.js 34d15e1.js 0013161.js
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  fonts/materialdesignicons-webfont.ac209be.eot (1.19 MiB)
  fonts/materialdesignicons-webfont.626f06d.woff2 (376 KiB)
  fonts/materialdesignicons-webfont.e3dde18.woff (549 KiB)
  fonts/materialdesignicons-webfont.28ce6d3.ttf (1.19 MiB)
  34d15e1.js (1.92 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (1000 KiB). This can impact web performance.
Entrypoints:
  app (2.29 MiB)
      1134544.js
      34013bb.js
      34d15e1.js
      0013161.js

ℹ Ready to run nuxt start                                                                                                                                                                                13:55:21
Operating system
  ℹ linux 5.10.0-18-amd64 (Debian)
Environment
  ✔ Found: /usr/bin/env
App name
  ✔ ezpaarse
Administrator email
  ✔ ezpaarse@couperin.org
Server port
  ℹ 59599
  ✔ Port is available
Node.js
  ✔ /usr/local/ezpaarse/build/nvm/versions/node/v14.17.6/bin/node
MongoDB
  ✔ Version: 6.0.8

✔ ezpaarse is ready ro run.
pseudom commented 1 year ago

Thanks for this issue. Could you explicitly check that mongo is started in your Debian 11 install ? In some distribution you have to manually create the /data/db directory to run

I can't reproduce your problem in my Debian 11/MongoDB 6.0.8 installation

Let us know !

fbridebian commented 1 year ago

Thanks for the reply.

I can confirm that MongoDB is running, listening to localhost:27017 and I can connect to it with mongosh command :

image

However I still get the following error :

image

I'm working on a fresh install on a VM freshly installed out from a Debian NetInst ISO.

nojhamster commented 12 months ago

Hi there !

I could reproduce this behavior in a VM and figured out the issue. In a fresh Debian install, the DNS has both IPv4 and IPv6 records for localhost, so the Nodejs driver tries to connect using IPv6. However, MongoDB does not listen to IPv6 by default, so the connection fails.

You should be able to fix the issue with one of the following solutions.

Solution 1: Force ezPAARSE to use IPv4 by creating a config.local.json file and replacing localhost by 127.0.0.1 in the MongoDB URL.

{
  "EZPAARSE_MONGO_URL": "mongodb://127.0.0.1:27017/ezpaarse"
}

Solution 2: Edit the MongoDB configuration to make it listen to IPv6. In /etc/mongod.conf:

net:
  port: 27017
  bindIp: 127.0.0.1,::1
  ipv6: true
fbridebian commented 10 months ago

Thanks for your help, I can confirm that solves the problem. I will close this issue and let you decide whether you want to make it appear in your documentation (and where) or not.