google-compute-engine,mongodb,google-app-engine,mongoose"/>
1Answer
  • 6
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Mongo DB on Google Cloud VM

I have an Ubuntu VM in Google cloud which is having my Mongo Instance running.

  1. I have enabled authentication
  2. Mongo config is configured to bind for the 127.0.0.1 and the internal IP of the server.
  3. In google console I've the 27107 TCP port opened.
  4. The port is open in the VM too.
  5. But when i try to connect to the Mongo instance using the internal IP of the server from a Node JS App Service I'm getting an error as shown below. any idea why is that?

    failed to connect to server [:27017] on first connect [MongoError: connection 0 to :27017 timed out]' }

I'm also able to connect to server using mongo shell using the google cloud console.

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags