[SERVER-37857] I got this error while MongoDB connecting to web browser "it looks like you are trying to access MongoDB over HTTP on the native driver port." Created: 01/Nov/18  Updated: 02/Nov/18  Resolved: 01/Nov/18

Status: Closed
Project: Core Server
Component/s: HTTP Console
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Santhi Lakshmi Yenumula Assignee: Danny Hatcher (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot_1.png     PNG File Screenshot_4.png    
Operating System: ALL
Participants:

 Description   

Below is the error which I got while connecting Mnogo DB to web browser.

 

2018-11-01T11:12:10.237+0530 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2018-11-01T11:12:10.741+0530 I CONTROL [initandlisten] MongoDB starting : pid=12368 port=27017 dbpath=C:\data\db\ 64-bit host=DESKTOP-O94NMIO
2018-11-01T11:12:10.741+0530 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2018-11-01T11:12:10.741+0530 I CONTROL [initandlisten] db version v4.0.2
2018-11-01T11:12:10.741+0530 I CONTROL [initandlisten] git version: fc1573ba18aee42f97a3bb13b67af7d837826b47
2018-11-01T11:12:10.741+0530 I CONTROL [initandlisten] allocator: tcmalloc
2018-11-01T11:12:10.741+0530 I CONTROL [initandlisten] modules: enterprise
2018-11-01T11:12:10.741+0530 I CONTROL [initandlisten] build environment:
2018-11-01T11:12:10.741+0530 I CONTROL [initandlisten] distmod: windows-64
2018-11-01T11:12:10.741+0530 I CONTROL [initandlisten] distarch: x86_64
2018-11-01T11:12:10.742+0530 I CONTROL [initandlisten] target_arch: x86_64
2018-11-01T11:12:10.742+0530 I CONTROL [initandlisten] options: {}
2018-11-01T11:12:10.744+0530 I STORAGE [initandlisten] Detected data files in C:\data\db\ created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2018-11-01T11:12:10.744+0530 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3515M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
2018-11-01T11:12:10.999+0530 I STORAGE [initandlisten] WiredTiger message [1541050930:999053][12368:140724683619408], txn-recover: Main recovery loop: starting at 30/5760
2018-11-01T11:12:11.163+0530 I STORAGE [initandlisten] WiredTiger message [1541050931:162951][12368:140724683619408], txn-recover: Recovering log 30 through 31
2018-11-01T11:12:11.268+0530 I STORAGE [initandlisten] WiredTiger message [1541050931:268886][12368:140724683619408], txn-recover: Recovering log 31 through 31
2018-11-01T11:12:11.354+0530 I STORAGE [initandlisten] WiredTiger message [1541050931:353835][12368:140724683619408], txn-recover: Set global recovery timestamp: 0
2018-11-01T11:12:11.392+0530 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2018-11-01T11:12:11.432+0530 I CONTROL [initandlisten]
2018-11-01T11:12:11.433+0530 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2018-11-01T11:12:11.436+0530 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2018-11-01T11:12:11.436+0530 I CONTROL [initandlisten]
2018-11-01T11:12:11.437+0530 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost.
2018-11-01T11:12:11.437+0530 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server.
2018-11-01T11:12:11.438+0530 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP
2018-11-01T11:12:11.438+0530 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to
2018-11-01T11:12:11.439+0530 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the
2018-11-01T11:12:11.439+0530 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning.
2018-11-01T11:12:11.440+0530 I CONTROL [initandlisten]
2018-11-01T11:12:11.675+0530 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory 'C:/data/db/diagnostic.data'
2018-11-01T11:12:11.678+0530 I NETWORK [initandlisten] waiting for connections on port 27017



 Comments   
Comment by Santhi Lakshmi Yenumula [ 02/Nov/18 ]

Thanks for your quick response Danny.

Comment by Danny Hatcher (Inactive) [ 01/Nov/18 ]

Hello Santhi,

In MongoDB 3.6, we removed the deprecated HTTP interface and REST API. As you are using MongoDB 4.0.2, you will be unavailable to connect over a web browser. If you do not have an application with a compatible driver, please use the mongo shell included with the MongoDB package in order to run simple queries and perform administrative actions.

Thank you,

Danny

Generated at Thu Feb 08 04:47:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.