Giter Club home page Giter Club logo

Comments (15)

Rathius avatar Rathius commented on September 7, 2024 1

Might want to take a look at this Automattic/mongoose#5399

from pisignage-server.

colloqi avatar colloqi commented on September 7, 2024

Make sure mongod is running and url is correct in config/env/development.js

from pisignage-server.

jphoubion avatar jphoubion commented on September 7, 2024

Hi,
Here is the result of **sudo service mongod status**

_jp@jp-vbox:~/pisignage-server$ sudo service mongod status
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2018-11-05 12:57:08 CET; 7min ago
Docs: https://docs.mongodb.org/manual
Main PID: 5257 (mongod)
CGroup: /system.slice/mongod.service
└─5257 /usr/bin/mongod --config /etc/mongod.conf

nov 05 12:57:08 jp-vbox systemd[1]: Started MongoDB Database Server.
nov 05 12:57:08 jp-vbox mongod[5257]: 2018-11-05T12:57:08.535+0100 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'_

And here is the content of the development.js file

_'use strict';

module.exports = {
env: 'development',
https: false,
port: process.env.PORT || 3000,
mongo: {
uri: 'mongodb://localhost/pisignage-server-dev'
}
};_

I don't know what is wrong :-/

Thanks for your help

from pisignage-server.

shihabulmilah avatar shihabulmilah commented on September 7, 2024

Hi jphoubion,

Have you solve this issue? I got the same problem

Thanks

from pisignage-server.

jphoubion avatar jphoubion commented on September 7, 2024

Hi shihabulmilah ,
Unfortunatly no, so i gave up for the moment.
I was waiting for an answer from the developer.

from pisignage-server.

shihabulmilah avatar shihabulmilah commented on September 7, 2024

I'm waiting too :D

from pisignage-server.

colloqi avatar colloqi commented on September 7, 2024

Hello,

The error is because mongodb connection is not going through and db variable is not valid. in server.js can you change the line

mongoose.connect(config.mongo.uri, config.mongo.options);

to have an error callback as shown and see what error is thrown?

mongoose.connect(config.mongo.uri, config.mongo.options, function(err) {
if (err)
console.log(err);
});

from pisignage-server.

shihabulmilah avatar shihabulmilah commented on September 7, 2024

Hi colloqi,

I have tried but still not working, got same error

Thanks

from pisignage-server.

colloqi avatar colloqi commented on September 7, 2024

Can you share what error you are getting in step mongoose.connect ?

from pisignage-server.

shihabulmilah avatar shihabulmilah commented on September 7, 2024

Hi Colloqi,

Here is the error
image

and this is the configuration server.js
image

Thanks

from pisignage-server.

colloqi avatar colloqi commented on September 7, 2024

Best way is one of us have a look at your server, if that is possible, please get in touch at [email protected]

from pisignage-server.

shihabulmilah avatar shihabulmilah commented on September 7, 2024

Okay, that possible remote and check my server, send email to [email protected]?

from pisignage-server.

colloqi avatar colloqi commented on September 7, 2024

Yes

from pisignage-server.

colloqi avatar colloqi commented on September 7, 2024

in config/env/ directory, can you replace "localhost" with 127.0.0.1:27017 in files development.js, production.js and try? The error could be due to DNS failure

from pisignage-server.

colloqi avatar colloqi commented on September 7, 2024

More specifically Automattic/mongoose#5399 (comment)

from pisignage-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.