[DOCS-10111] Comment on: "manual/tutorial/install-mongodb-enterprise-on-ubuntu.txt" Created: 12/Apr/17  Updated: 16/Nov/21  Resolved: 12/Apr/17

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Steve Hand Assignee: Andrew Aldridge
Resolution: Cannot Reproduce Votes: 0
Labels: collector-298ba4e7, linux-installation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 14.04

Location: https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-ubuntu/?_ga=1.223191827.988955098.1488318251#install-mongodb-enterprise
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.1 Safari/603.1.30
Screen Resolution: 2560 x 1440


Participants:
Days since reply: 6 years, 44 weeks ago

 Description   

After following the procedure to install MongoDB through apt-get on Ubuntu 14.04, 'mongo' is not setup as a service; unlike what is described on this page.



 Comments   
Comment by Andrew Aldridge [ 12/Apr/17 ]

That page describes a mongod service, which seems to be configured properly based on my tests.

Can you add a console session log showing the problem you encountered?

ubuntu@ip-10-67-212-47:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.DaObyr1PFw --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
gpg: requesting key A15703C6 from hkp server keyserver.ubuntu.com
gpg: key A15703C6: public key "MongoDB 3.4 Release Signing Key <packaging@mongodb.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
ubuntu@ip-10-67-212-47:~$ echo "deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
deb [ arch=amd64 ] http://repo.mongodb.com/apt/ubuntu trusty/mongodb-enterprise/3.4 multiverse
ubuntu@ip-10-67-212-47:~$ sudo apt-get update
Ign http://us-east-1.ec2.archive.ubuntu.com trusty InRelease
Get:1 http://us-east-1.ec2.archive.ubuntu.com trusty-updates InRelease [65.9 kB]        
Ign http://repo.mongodb.com trusty/mongodb-enterprise/3.4 InRelease                                                       
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release.gpg                                   
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release                                       
Get:2 http://security.ubuntu.com trusty-security InRelease [65.9 kB]       
Get:3 http://repo.mongodb.com trusty/mongodb-enterprise/3.4 Release.gpg [801 B]       
Get:4 http://repo.mongodb.com trusty/mongodb-enterprise/3.4 Release [4,444 B]                    
Get:5 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Sources [395 kB]               
Get:6 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Sources [176 kB]
Get:7 http://repo.mongodb.com trusty/mongodb-enterprise/3.4/multiverse amd64 Packages [4,167 B]          
Get:8 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main amd64 Packages [973 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe amd64 Packages [402 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Translation-en [482 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Translation-en [213 kB]
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main Sources                 
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe Sources             
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main amd64 Packages          
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe amd64 Packages      
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en          
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en                  
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en_US                    
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en_US                
Get:12 http://security.ubuntu.com trusty-security/main Sources [129 kB]
Get:13 http://security.ubuntu.com trusty-security/universe Sources [50.6 kB]    
Get:14 http://security.ubuntu.com trusty-security/main amd64 Packages [606 kB]  
Ign http://repo.mongodb.com trusty/mongodb-enterprise/3.4/multiverse Translation-en_US
Ign http://repo.mongodb.com trusty/mongodb-enterprise/3.4/multiverse Translation-en
Get:15 http://security.ubuntu.com trusty-security/universe amd64 Packages [155 kB]
Get:16 http://security.ubuntu.com trusty-security/main Translation-en [332 kB]
Get:17 http://security.ubuntu.com trusty-security/universe Translation-en [90.3 kB]
Fetched 4,144 kB in 2s (2,067 kB/s)                                      
Reading package lists... Done
ubuntu@ip-10-67-212-47:~$ sudo apt-get install -y mongodb-enterprise
Reading package lists... 0%
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  mongodb-enterprise-mongos mongodb-enterprise-server mongodb-enterprise-shell mongodb-enterprise-tools
The following NEW packages will be installed:
  mongodb-enterprise mongodb-enterprise-mongos mongodb-enterprise-server mongodb-enterprise-shell mongodb-enterprise-tools
0 upgraded, 5 newly installed, 0 to remove and 187 not upgraded.
Need to get 75.7 MB of archives.
After this operation, 301 MB of additional disk space will be used.
Get:1 http://repo.mongodb.com/apt/ubuntu/ trusty/mongodb-enterprise/3.4/multiverse mongodb-enterprise-shell amd64 3.4.3 [8,447 kB]
Get:2 http://repo.mongodb.com/apt/ubuntu/ trusty/mongodb-enterprise/3.4/multiverse mongodb-enterprise-server amd64 3.4.3 [14.5 MB]
Get:3 http://repo.mongodb.com/apt/ubuntu/ trusty/mongodb-enterprise/3.4/multiverse mongodb-enterprise-mongos amd64 3.4.3 [8,223 kB]
Get:4 http://repo.mongodb.com/apt/ubuntu/ trusty/mongodb-enterprise/3.4/multiverse mongodb-enterprise-tools amd64 3.4.3 [44.4 MB]
Get:5 http://repo.mongodb.com/apt/ubuntu/ trusty/mongodb-enterprise/3.4/multiverse mongodb-enterprise amd64 3.4.3 [3,564 B]
Fetched 75.7 MB in 2s (33.8 MB/s)               
Selecting previously unselected package mongodb-enterprise-shell.
(Reading database ... 138604 files and directories currently installed.)
Preparing to unpack .../mongodb-enterprise-shell_3.4.3_amd64.deb ...
Unpacking mongodb-enterprise-shell (3.4.3) ...
Selecting previously unselected package mongodb-enterprise-server.
Preparing to unpack .../mongodb-enterprise-server_3.4.3_amd64.deb ...
Unpacking mongodb-enterprise-server (3.4.3) ...
Selecting previously unselected package mongodb-enterprise-mongos.
Preparing to unpack .../mongodb-enterprise-mongos_3.4.3_amd64.deb ...
Unpacking mongodb-enterprise-mongos (3.4.3) ...
Selecting previously unselected package mongodb-enterprise-tools.
Preparing to unpack .../mongodb-enterprise-tools_3.4.3_amd64.deb ...
Unpacking mongodb-enterprise-tools (3.4.3) ...
Selecting previously unselected package mongodb-enterprise.
Preparing to unpack .../mongodb-enterprise_3.4.3_amd64.deb ...
Unpacking mongodb-enterprise (3.4.3) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-enterprise-shell (3.4.3) ...
Setting up mongodb-enterprise-server (3.4.3) ...
Adding system user `mongodb' (UID 108) ...
Adding new user `mongodb' (UID 108) with group `nogroup' ...
Not creating home directory `/home/mongodb'.
Adding group `mongodb' (GID 117) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
mongod start/running, process 3064
Setting up mongodb-enterprise-mongos (3.4.3) ...
Setting up mongodb-enterprise-tools (3.4.3) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-enterprise (3.4.3) ...
ubuntu@ip-10-67-212-47:~$ sudo service mongod start
start: Job is already running: mongod

Generated at Thu Feb 08 07:59:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.