Cannot connect to remote postgres server

Moved Technical Support
  • Hi, when i try to connect remote postgres db it's not connecting, but it's working in local
    Following error shows when connecting remote server in logs/output.log
    Please help!

    NodeBB v1.18.6 Copyright (C) 2013-2022 NodeBB Inc.
    This program comes with ABSOLUTELY NO WARRANTY.
    This is free software, and you are welcome to redistribute it under certain conditions.
    For the full license, please visit: http://www.gnu.org/copyleft/gpl.html
    
    Clustering enabled: Spinning up 1 process(es).
    
    2022-09-08T09:36:48.339Z [4567/2552] - info: Initializing NodeBB v1.18.6 http://localhost:4567
    2022-09-08T09:36:48.343Z [4567/2552] - error: Error: Cannot find module './dev-cxopicks-db'
    Require stack:
    - E:\projects\bizstack\nodebb\src\database\index.js
    - E:\projects\bizstack\nodebb\src\start.js
    - E:\projects\bizstack\nodebb\require-main.js
    - E:\projects\bizstack\nodebb\app.js
        at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
        at Function.Module._load (node:internal/modules/cjs/loader:778:27)
        at Module.require (node:internal/modules/cjs/loader:1005:19)
        at require (node:internal/modules/cjs/helpers:102:18)
        at Object.<anonymous> (E:\projects\bizstack\nodebb\src\database\index.js:13:19)
        at Module._compile (node:internal/modules/cjs/loader:1105:14)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
        at Module.load (node:internal/modules/cjs/loader:981:32)
        at Function.Module._load (node:internal/modules/cjs/loader:822:12)
        at Module.require (node:internal/modules/cjs/loader:1005:19)
    [cluster] Child Process (2552) has exited (code: 0, signal: null)
    

    config.json
    733aab34-296c-442b-b2bf-8b6b26ec0116-image.png

  • PitaJP PitaJ moved this topic from Testing Ground on
  • @Arun-K the top-level "database" option should be "postgres". It tells NodeBB which kind of database you're using.

  • @PitaJ Thanks!


Suggested Topics