Laragon, MongoDB, and Form.io


  • | 828 points

    Hi, tried following the tutorial https://forum.laragon.org/topic/172/tutorial-how-to-install-mongodb-extension/2
    My PHP ver is php-7.2.19-Win32-VC15-x64 I have tried both php_mongodb-1.5.2-7.2-nts-vc15-x64 and php_mongodb-1.5.2-7.2-ts-vc15-x64

    Not sure if this is a Laragon issue or a form.io issue

    ```
    C:\laragon\www\formio-master\formio-master  (formio@2.1.0-rc.10)
    λ npm start
    > formio@2.1.0-rc.10 start C:\laragon\www\formio-master\formio-master
    > node main.js
    (node:22216) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
    __  __                          _       __
    / / / _| ___  _ __ _ __ ___     (_) ___  \ \
    / / | |_ / _ \| '__| '_ ` _ \    | |/ _ \  \ \
    \ \ |  _| (_) | |  | | | | | | _ | | (_) | / /
    \_\|_|  \___/|_|  |_| |_| |_|(_)|_|\___/ /_/
    Welcome to the Form.io application server!
    - Help: https://help.form.io
    - Code: https://github.com/formio
    - Love: https://form.io
    C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\utils.js:687
    throw error;
    ^
    Error: Could not connect to the given Database for server updates: mongodb://localhost:27017/formioapp.
    at C:\laragon\www\formio-master\formio-master\src\db\index.js:253:17
    at unlock (C:\laragon\www\formio-master\formio-master\src\db\index.js:77:14)
    at C:\laragon\www\formio-master\formio-master\src\db\index.js:252:9
    at C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\utils.js:684:9
    at C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\mongo_client.js:226:23
    at connectCallback (C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\operations\connect.js:366:5)
    at C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\operations\connect.js:433:14
    at Server.
    <anonymous>
    (C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\topologies\server.js:230:11)
    at Object.onceWrapper (events.js:288:20)
    at Server.emit (events.js:200:13)
    at Pool.
    <anonymous>
    (C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\core\topologies\server.js:436:21)
    at Pool.emit (events.js:200:13)
    at C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\core\connection\pool.js:562:14
    at C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\core\connection\pool.js:995:11
    at C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\core\connection\connect.js:32:7
    at callback (C:\laragon\www\formio-master\formio-master\node_modules\mongodb\lib\core\connection\connect.js:280:5)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! formio@2.1.0-rc.10 start: `node main.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the formio@2.1.0-rc.10 start script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\scag\AppData\Roaming\npm-cache\_logs\2021-03-16T11_36_49_069Z-debug.log
    
    ```

Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.