jsk-ros-pkg / jsk_robot

jsk-ros-pkg/jsk_robot
https://github.com/jsk-ros-pkg/jsk_robot
73 stars 97 forks source link

mongodbの使い方 #1706

Open k-okada opened 2 years ago

k-okada commented 2 years ago

@knorth55 以下のlaunchファイルを立ち上げたら,とりあえずDBに何か貯まるのかな?と思ったんだけど,

[ERROR] [1666693339.502586]: Could not get message store services. Maybe the message store has not been started? Retrying..
[ERROR] [1666693339.502586]: Could not get message store services. Maybe the message store has not been started? Retrying..

というエラーがでる. 1)ローカルPCだけに保存する場合 2)リプリケーとする場合 のそれぞれのデフォルトの設定の方法を教えてください.

<launch>
  <!-- logging database -->
  <include file="$(find jsk_robot_startup)/lifelog/mongodb.launch">
    <arg name="use_daemon" value="true"/>
    <arg name="port" value="27017" />
    <arg name="repl_set_mode" value="false" />
  </include>

  <arg name="map_frame" default="odom" />
  <include file="$(find jsk_robot_startup)/lifelog/common_logger.launch">
    <arg name="save_rgb" value="false" />
    <arg name="save_depth" value="false" />
    <arg name="save_tf" value="true" />
    <arg name="save_joint_states" value="true" />
    <arg name="save_base_trajectory" value="false" />
    <arg name="save_object_detection" value="false" />
    <arg name="save_action" value="true" />
    <arg name="save_smach" value="true" />
    <arg name="save_app" value="true" />
    <arg name="enable_monitor" value="false" />
    <arg name="log_rate" value="1.0" />
    <arg name="launch_manager" value="true" />
    <arg name="map_frame_id" value="$(arg map_frame)" />
    <arg name="approximate_sync" value="true"/>
  </include>
</include>
knorth55 commented 2 years ago

it seems mongo is not working. can you check mongodb.service is working?

sudo systemctl status mongodb.service
sudo systemctl start mongodb.service

also, you need to set these three rosparams.

<launch>
  <!-- EDIT: rosparam for all robots -->
  <param name="robot/type" value="pr2"/>
  <param name="robot/name" value="pr1040"/>
  <!-- EDIT: rosparam for mongodb -->
  <param name="robot/database" value="jsk_robot_lifelog"/>

  <!-- logging database -->
  <include file="$(find jsk_robot_startup)/lifelog/mongodb.launch">
    <arg name="use_daemon" value="true"/>
    <arg name="port" value="27017" />
    <arg name="repl_set_mode" value="false" />
  </include>

  <arg name="map_frame" default="odom" />
  <include file="$(find jsk_robot_startup)/lifelog/common_logger.launch">
    <arg name="save_rgb" value="false" />
    <arg name="save_depth" value="false" />
    <arg name="save_tf" value="true" />
    <arg name="save_joint_states" value="true" />
    <arg name="save_base_trajectory" value="false" />
    <arg name="save_object_detection" value="false" />
    <arg name="save_action" value="true" />
    <arg name="save_smach" value="true" />
    <arg name="save_app" value="true" />
    <arg name="enable_monitor" value="false" />
    <arg name="log_rate" value="1.0" />
    <arg name="launch_manager" value="true" />
    <arg name="map_frame_id" value="$(arg map_frame)" />
    <arg name="approximate_sync" value="true"/>
  </include>
</launch>
k-okada commented 2 years ago

thank you! It sees mongodb is working

k-okada@p51s:~/catkin_ws/ws_hironx/src/rtmros_tutorials/hrpsys_ros_bridge_tutorials$ cd
k-okada@p51s:~$ sudo systemctl status mongodb.service
[sudo] password for k-okada:
● mongodb.service - An object/document-oriented database
   Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2022-10-25 19:16:32 JST; 2h 55min ago
     Docs: man:mongod(1)
 Main PID: 6030 (mongod)
    Tasks: 28 (limit: 4915)
   CGroup: /system.slice/mongodb.service
           └─6030 /usr/bin/mongod --unixSocketPrefix=/run/mongodb --config /etc/mongodb.conf

Oct 25 19:16:32 p51s systemd[1]: Started An object/document-oriented database.

but still fails with

  <!-- EDIT: rosparam for all robots -->
  <param name="robot/type" value="pepper"/>
  <param name="robot/name" value="basil"/>
  <param name="robot/database" value="jsk_robot_lifelog"/>

  <!-- logging database -->
  <include file="$(find jsk_robot_startup)/lifelog/mongodb.launch">
    <arg name="use_daemon" value="true"/>
    <arg name="port" value="27017" />
    <arg name="repl_set_mode" value="false" />
  </include>

  <arg name="map_frame" default="odom" />
  <include file="$(find jsk_robot_startup)/lifelog/common_logger.launch">
    <arg name="save_rgb" value="false" />
    <arg name="save_depth" value="false" />
    <arg name="save_tf" value="true" />
    <arg name="save_joint_states" value="true" />
    <arg name="save_base_trajectory" value="false" />
    <arg name="save_object_detection" value="false" />
    <arg name="save_action" value="true" />
    <arg name="save_smach" value="true" />
    <arg name="save_app" value="true" />
    <arg name="enable_monitor" value="false" />
    <arg name="log_rate" value="1.0" />
    <arg name="launch_manager" value="true" />
    <arg name="map_frame_id" value="$(arg map_frame)" />
    <arg name="approximate_sync" value="true"/>
  </include>

it fails with


  <param name="robot/type" value="pr2"/>
  <param name="robot/name" value="pr1040"/>
``
knorth55 commented 2 years ago

can you connect mongodb by mongo command?

mongo localhost:27017

if you can't, you may need to change /etc/mongodb.conf. some PC needs to change bind_ip to 0.0.0.0 . PR2 needs to change bind_ip to 0.0.0.0.

bind_ip = 0.0.0.0
#bind_ip = 127.0.0.1
#port = 27017
k-okada commented 2 years ago

seems working

$ mongo localhost:27017
MongoDB shell version v3.6.3
connecting to: mongodb://localhost:27017/test
MongoDB server version: 3.6.3
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
        http://docs.mongodb.org/
Questions? Try the support group
        http://groups.google.com/group/mongodb-user
Server has startup warnings:
2022-10-25T19:16:32.228+0900 I STORAGE  [initandlisten]
2022-10-25T19:16:32.228+0900 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2022-10-25T19:16:32.228+0900 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2022-10-25T19:16:32.794+0900 I CONTROL  [initandlisten]
2022-10-25T19:16:32.794+0900 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2022-10-25T19:16:32.794+0900 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2022-10-25T19:16:32.794+0900 I CONTROL  [initandlisten]
>
k-okada commented 2 years ago
$ apt show mongodb-server-core
Package: mongodb-server-core
Version: 1:3.6.3-0ubuntu1.4
Priority: optional
Section: universe/database
Source: mongodb
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian MongoDB Maintainers <pkg-mongodb-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 72.7 MB
Depends: libboost-filesystem1.65.1, libboost-program-options1.65.1, libboost-system1.65.1, libc6 (>= 2.15), libgcc1 (>= 1:3.4), libgoogle-perftools4, libpcrecpp0v5 (>= 7.7), libsnappy1v5, libssl1.1 (>= 1.1.0), libstdc++6 (>= 6), libstemmer0d (>= 0+svn527), libyaml-cpp0.5v5, zlib1g (>= 1:1.2.0)
Breaks: mongodb-server (<< 1:3.4.14-3ubuntu1)
Replaces: mongodb-server (<< 1:3.4.14-3ubuntu1)
Homepage: https://www.mongodb.org
Download-Size: 20.3 MB
APT-Manual-Installed: no
APT-Sources: http://jp.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
Description: object/document-oriented database (server binaries package)
 MongoDB is a high-performance, open source, schema-free
 document-oriented data store that's easy to deploy, manage
 and use. It's network accessible, written in C++ and offers
 the following features:
 .
    * Collection oriented storage - easy storage of object-style data
    * Full index support, including on inner objects
    * Query profiling
    * Replication and fail-over support
    * Efficient storage of binary data including large objects (e.g. videos)
    * Auto-sharding for cloud-level scalability
 .
 High performance, scalability, and reasonable depth of
 functionality are the goals for the project.
 .
 This package contains the database server (mongod) and sharding
 server/load-balancer (mongos) binaries.

N: There is 1 additional record. Please use the '-a' switch to see it

$ apt search mongodb
Sorting... Done
Full Text Search... Done
collectd-core/bionic-updates 5.7.2-2ubuntu1.2 amd64
  statistics collection and monitoring daemon (core system)

golang-gopkg-mgo.v2-dev/bionic,bionic 2016.08.01-5 all
  Go library for MongoDB

jmeter-mongodb/bionic,bionic 2.13-3 all
  Load testing and performance measurement application (mongodb module)

kamailio-mongodb-modules/bionic 5.1.2-1ubuntu2 amd64
  mongodb modules for the Kamailio SIP server

libbson-1.0-0/bionic,now 1.9.2-1 amd64 [installed,automatic]
  Library to parse and generate BSON documents - runtime files

libbson-dev/bionic,now 1.9.2-1 amd64 [installed]
  Library to parse and generate BSON documents - dev files

libbson-doc/bionic,bionic 1.9.2-1 all
  Library to parse and generate BSON documents - documentation

libbson-perl/bionic,bionic 1.4.0-1 all
  BSON serialization and deserialization for Perl

libcatmandu-perl/bionic,bionic 1.0700-1 all
  metadata toolkit

libcatmandu-store-mongodb-perl/bionic,bionic 0.0700-1 all
  searchable store backed by MongoDB

libmango-perl/bionic,bionic 1.29-1 all
  Pure-Perl non-blocking I/O MongoDB client

libmongo-client-dev/bionic 0.1.8-3.1 amd64
  Development files for the alternate C driver for MongoDB

libmongo-client-doc/bionic,bionic 0.1.8-3.1 all
  Documentation for the alternate C driver for MongoDB

libmongo-client0/bionic 0.1.8-3.1 amd64
  Alternate C driver for the MongoDB document-oriented datastore

libmongo-client0-dbg/bionic 0.1.8-3.1 amd64
  Alternate C driver for MongoDB (debugging symbols)

libmongoc-1.0-0/bionic 1.9.2+dfsg-1build1 amd64
  MongoDB C client library - runtime files

libmongoc-dev/bionic 1.9.2+dfsg-1build1 amd64
  MongoDB C client library - dev files

libmongoc-doc/bionic,bionic 1.9.2+dfsg-1build1 all
  MongoDB C client library - documentation

libmongoclient-dev/bionic,now 1.1.2-6ubuntu3 amd64 [installed,automatic]
  MongoDB C++ Driver (development)

libmongoclient0/bionic,now 1.1.2-6ubuntu3 amd64 [installed,automatic]
  MongoDB C++ Driver (runtime)

libmongodb-java/bionic-updates,bionic-updates,bionic-security,bionic-security 3.6.3-2~18.04 all
  MongoDB Java Driver

libmongodb-perl/bionic 1.8.1-1 amd64
  Mongo Driver for Perl

libpocomongodb50/bionic,now 1.8.0.1-1ubuntu4 amd64 [installed,automatic]
  C++ Portable Components (POCO) Data MongoDB library

libvibe-mongodb-dev/bionic 0.8.2-1build1 amd64
  High-performance web application toolkit - MongoDB (development)

libvibe-mongodb0/bionic 0.8.2-1build1 amd64
  High-performance web application toolkit - MongoDB

loganalyzer/bionic,bionic 4.1.5+dfsg-2 all
  web interface to syslog and event data

mongo-tools/bionic,now 3.6.3-0ubuntu1 amd64 [installed,automatic]
  collection of tools for administering MongoDB servers

mongodb/bionic-updates,bionic-security,now 1:3.6.3-0ubuntu1.4 amd64 [installed,automatic]
  object/document-oriented database (metapackage)

mongodb-clients/bionic-updates,bionic-security,now 1:3.6.3-0ubuntu1.4 amd64 [installed,automatic]
  object/document-oriented database (client apps)

mongodb-dev/bionic,bionic 2:1.1.2-6ubuntu3 all
  MongoDB C++ Driver (transitional package)

mongodb-server/bionic-updates,bionic-updates,bionic-security,bionic-security,now 1:3.6.3-0ubuntu1.4 all [installed,automatic]
  object/document-oriented database (managed server package)

mongodb-server-core/bionic-updates,bionic-security,now 1:3.6.3-0ubuntu1.4 amd64 [installed,automatic]
  object/document-oriented database (server binaries package)

nagios-plugins-contrib/bionic 21.20170222 amd64
  Plugins for nagios compatible monitoring systems

php-analog/bionic,bionic 1.0.7-2 all
  PHP micro logging package

php-horde-cache/bionic,bionic 2.5.5-1 all
  Horde Caching API

php-horde-vfs/bionic,bionic 2.4.0-1ubuntu1 all
  Virtual File System API

php-mongodb/bionic 1.3.4-1build1 amd64
  MongoDB driver for PHP

postgresql-10-plv8/bionic 1:1.4.10.ds-2 amd64
  Procedural language interface between PostgreSQL and JavaScript

prometheus-mongodb-exporter/bionic 1.0.0-2 amd64
  Prometheus exporter for MongoDB

puppet-module-puppetlabs-mongodb/bionic,bionic 0.7.0-2 all
  Puppet module for managing mongodb installation and configuration

python-bson/bionic,now 3.6.1+dfsg1-1 amd64 [installed,automatic]
  Python implementation of BSON for MongoDB

python-bson-ext/bionic,now 3.6.1+dfsg1-1 amd64 [installed,automatic]
  C-coded extension to the python-bson package

python-celery/bionic,bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (Python2 version)

python-celery-common/bionic,bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (common files)

python-celery-doc/bionic,bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (Documentation)

python-django-q/bionic,bionic 0.9.4-1 all
  Django multiprocessing distributed task queue (Python 2 version)

python-django-q-doc/bionic,bionic 0.9.4-1 all
  Django multiprocessing distributed task queue (Documentation)

python-gridfs/bionic,bionic,now 3.6.1+dfsg1-1 all [installed,automatic]
  Python implementation of GridFS for MongoDB

python-loofah/bionic,bionic 0.1-1 all
  debile helper to rebuild a set of existing packages

python-mockupdb/bionic,bionic 1.3.0-1 all
  MongoDB Wire Protocol server library - Python 2.x

python-mongoengine/bionic,bionic 0.10.6-1 all
  Python Document-Object Mapper for working with MongoDB

python-mongoengine-doc/bionic,bionic 0.10.6-1 all
  Python Document-Object Mapper for working with MongoDB (documentation)

python-motor/bionic,bionic 1.2.1-1build1 all
  full-featured, non-blocking MongoDB driver - Python 2.x

python-pymongo/bionic,now 3.6.1+dfsg1-1 amd64 [installed]
  Python interface to the MongoDB document-oriented database

python-pymongo-doc/bionic,bionic 3.6.1+dfsg1-1 all
  Python interface to the MongoDB document-oriented database (documentation)

python-pymongo-ext/bionic,now 3.6.1+dfsg1-1 amd64 [installed,automatic]
  C-coded extension to the python-pymongo package

python3-bson/bionic 3.6.1+dfsg1-1 amd64
  Python3 implementation of BSON for MongoDB

python3-bson-ext/bionic 3.6.1+dfsg1-1 amd64
  C-coded extension to the python3-bson package

python3-celery/bionic,bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (Python3 version)

python3-django-q/bionic,bionic 0.9.4-1 all
  Django multiprocessing distributed task queue (Python 3 version)

python3-gridfs/bionic,bionic 3.6.1+dfsg1-1 all
  Python3 implementation of GridFS for MongoDB

python3-mockupdb/bionic,bionic 1.3.0-1 all
  MongoDB Wire Protocol server library - Python 3.x

python3-mongoengine/bionic,bionic 0.10.6-1 all
  Python 3 Document-Object Mapper for working with MongoDB

python3-motor/bionic,bionic 1.2.1-1build1 all
  full-featured, non-blocking MongoDB driver - Python 3.x

python3-pymongo/bionic 3.6.1+dfsg1-1 amd64
  Python3 interface to the MongoDB document-oriented database

python3-pymongo-ext/bionic 3.6.1+dfsg1-1 amd64
  C-coded extension to the python3-pymongo package

ros-melodic-mongodb-log/bionic 0.5.2-1bionic.20220127.165807 amd64
  The mongodb_log package

ros-melodic-mongodb-log-dbgsym/bionic 0.5.2-1bionic.20220127.165807 amd64
  debug symbols for ros-melodic-mongodb-log

ros-melodic-mongodb-store/bionic,now 0.5.2-1bionic.20220127.165316 amd64 [installed,automatic]
  A package to support MongoDB-based storage and analysis for data from a ROS system, eg.

ros-melodic-mongodb-store-dbgsym/bionic 0.5.2-1bionic.20220127.165316 amd64
  debug symbols for ros-melodic-mongodb-store

ros-melodic-mongodb-store-msgs/bionic,now 0.5.2-1bionic.20220127.164907 amd64 [installed]
  The mongodb_store_msgs package

ros-melodic-moveit-ros-warehouse/bionic 1.0.11-1bionic.20220913.173644 amd64 [upgradable from: 1.0.10-1bionic.20220530.091122]
  Components of MoveIt! connecting to MongoDB

ros-melodic-warehouse-ros-mongo/bionic 0.9.1-1bionic.20220510.082207 amd64
  Implementation of warehouse_ros for MongoDB

rsyslog-mongodb/bionic-updates,bionic-security 8.32.0-1ubuntu4.2 amd64
  MongoDB output plugin for rsyslog

ruby-connection-pool/bionic,bionic 2.2.0-1 all
  generic connection pool for ruby

ruby-em-mongo/bionic,bionic 0.5.1-1 all
  Ruby EventMachine driver for MongoDB

ruby-mongo/bionic,bionic 2.5.1-1 all
  Ruby driver for MongoDB

ruby-origin/bionic,bionic 2.2.0-1 all
  Simple DSL for MongoDB query generation

syslog-ng/bionic,bionic 3.13.2-3 all
  Enhanced system logging daemon (metapackage)

syslog-ng-core/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (core)

syslog-ng-dbg/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (debug symbols)

syslog-ng-dev/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (development files)

syslog-ng-mod-add-contextual-data/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (add-contextual-data plugin)

syslog-ng-mod-amqp/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (AMQP plugin)

syslog-ng-mod-basicfuncs-plus/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (extra template functions)

syslog-ng-mod-extra/bionic,bionic 3.13.2-3 all
  Enhanced system logging daemon (extra plugins)

syslog-ng-mod-geoip/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (GeoIP plugin)

syslog-ng-mod-getent/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (getent plugin)

syslog-ng-mod-graphite/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (graphite plugin)

syslog-ng-mod-grok/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (Grok parser support)

syslog-ng-mod-journal/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (systemd journal plugin)

syslog-ng-mod-json/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (JSON plugin)

syslog-ng-mod-kafka/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (kafka destination)

syslog-ng-mod-lua/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (Lua destination)

syslog-ng-mod-map-value-pairs/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (map-value-pairs plugin)

syslog-ng-mod-mongodb/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (MongoDB plugin)

syslog-ng-mod-perl/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (Perl destination)

syslog-ng-mod-python/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (Python plugin)

syslog-ng-mod-redis/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (Redis plugin)

syslog-ng-mod-riemann/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (Riemann destination)

syslog-ng-mod-rss/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (RSS destination)

syslog-ng-mod-smtp/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (SMTP plugin)

syslog-ng-mod-snmptrapd-parser/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (snmptrapd-parser plugin)

syslog-ng-mod-sql/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (SQL plugin)

syslog-ng-mod-stardate/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (stardate plugin)

syslog-ng-mod-stomp/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (STOMP plugin)

syslog-ng-mod-tag-parser/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (tag parser plugin)

syslog-ng-mod-trigger/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (trigger source)

syslog-ng-mod-xml-parser/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (xml parser plugin)

syslog-ng-mod-zmq/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (ZeroMQ destination)

uwsgi-plugin-mongo/bionic 2.0.15+10+0.0.3 amd64
  MongoDB/GridFS plugins for uWSGI

w1retap-mongo/bionic 1.4.4-3 amd64
  Data logger for 1-Wire weather sensors (MongoDB plugin)
knorth55 commented 2 years ago
$ apt show mongodb-server-core
Package: mongodb-server-core
Version: 1:3.6.3-0ubuntu1.4
Priority: optional
Section: universe/database
Source: mongodb
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian MongoDB Maintainers <pkg-mongodb-maintainers@lists.alioth.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 72.7 MB
Depends: libboost-filesystem1.65.1, libboost-program-options1.65.1, libboost-system1.65.1, libc6 (>= 2.15), libgcc1 (>= 1:3.4), libgoogle-perftools4, libpcrecpp0v5 (>= 7.7), libsnappy1v5, libssl1.1 (>= 1.1.0), libstdc++6 (>= 6), libstemmer0d (>= 0+svn527), libyaml-cpp0.5v5, zlib1g (>= 1:1.2.0)
Breaks: mongodb-server (<< 1:3.4.14-3ubuntu1)
Replaces: mongodb-server (<< 1:3.4.14-3ubuntu1)
Homepage: https://www.mongodb.org
Download-Size: 20.3 MB
APT-Manual-Installed: no
APT-Sources: http://jp.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
Description: object/document-oriented database (server binaries package)
 MongoDB is a high-performance, open source, schema-free
 document-oriented data store that's easy to deploy, manage
 and use. It's network accessible, written in C++ and offers
 the following features:
 .
    * Collection oriented storage - easy storage of object-style data
    * Full index support, including on inner objects
    * Query profiling
    * Replication and fail-over support
    * Efficient storage of binary data including large objects (e.g. videos)
    * Auto-sharding for cloud-level scalability
 .
 High performance, scalability, and reasonable depth of
 functionality are the goals for the project.
 .
 This package contains the database server (mongod) and sharding
 server/load-balancer (mongos) binaries.

N: 追加レコードが 1 件あります。表示するには '-a' スイッチを付けてください。
$ apt search mongodb
ソート中... 完了
全文検索... 完了  
collectd-core/bionic-updates 5.7.2-2ubuntu1.2 amd64
  statistics collection and monitoring daemon (core system)

golang-gopkg-mgo.v2-dev/bionic,bionic 2016.08.01-5 all
  Go library for MongoDB

jmeter-mongodb/bionic,bionic 2.13-3 all
  Load testing and performance measurement application (mongodb module)

kamailio-mongodb-modules/bionic 5.1.2-1ubuntu2 amd64
  mongodb modules for the Kamailio SIP server

libbson-1.0-0/bionic 1.9.2-1 amd64
  Library to parse and generate BSON documents - runtime files

libbson-dev/bionic 1.9.2-1 amd64
  Library to parse and generate BSON documents - dev files

libbson-doc/bionic,bionic 1.9.2-1 all
  Library to parse and generate BSON documents - documentation

libbson-perl/bionic,bionic 1.4.0-1 all
  BSON serialization and deserialization for Perl

libcatmandu-perl/bionic,bionic 1.0700-1 all
  metadata toolkit

libcatmandu-store-mongodb-perl/bionic,bionic 0.0700-1 all
  searchable store backed by MongoDB

libmango-perl/bionic,bionic 1.29-1 all
  Pure-Perl non-blocking I/O MongoDB client

libmongo-client-dev/bionic 0.1.8-3.1 amd64
  Development files for the alternate C driver for MongoDB

libmongo-client-doc/bionic,bionic 0.1.8-3.1 all
  Documentation for the alternate C driver for MongoDB

libmongo-client0/bionic 0.1.8-3.1 amd64
  Alternate C driver for the MongoDB document-oriented datastore

libmongo-client0-dbg/bionic 0.1.8-3.1 amd64
  Alternate C driver for MongoDB (debugging symbols)

libmongoc-1.0-0/bionic 1.9.2+dfsg-1build1 amd64
  MongoDB C client library - runtime files

libmongoc-dev/bionic 1.9.2+dfsg-1build1 amd64
  MongoDB C client library - dev files

libmongoc-doc/bionic,bionic 1.9.2+dfsg-1build1 all
  MongoDB C client library - documentation

libmongoclient-dev/bionic,now 1.1.2-6ubuntu3 amd64 [インストール済み、自動]
  MongoDB C++ Driver (development)

libmongoclient0/bionic,now 1.1.2-6ubuntu3 amd64 [インストール済み、自動]
  MongoDB C++ Driver (runtime)

libmongodb-java/bionic-updates,bionic-updates,bionic-security,bionic-security 3.6.3-2~18.04 all
  MongoDB Java Driver

libmongodb-perl/bionic 1.8.1-1 amd64
  Mongo Driver for Perl

libpocomongodb50/bionic,now 1.8.0.1-1ubuntu4 amd64 [インストール済み、自動]
  C++ Portable Components (POCO) Data MongoDB library

libvibe-mongodb-dev/bionic 0.8.2-1build1 amd64
  High-performance web application toolkit - MongoDB (development)

libvibe-mongodb0/bionic 0.8.2-1build1 amd64
  High-performance web application toolkit - MongoDB

loganalyzer/bionic,bionic 4.1.5+dfsg-2 all
  web interface to syslog and event data

mongo-tools/bionic,now 3.6.3-0ubuntu1 amd64 [インストール済み、自動]
  collection of tools for administering MongoDB servers

mongodb/bionic-updates,bionic-security,now 1:3.6.3-0ubuntu1.4 amd64 [インストール済み]
  object/document-oriented database (metapackage)

mongodb-clients/bionic-updates,bionic-security,now 1:3.6.3-0ubuntu1.4 amd64 [インストール済み、自動]
  object/document-oriented database (client apps)

mongodb-compass/now 1.19.12-1 amd64 [インストール済み、ローカル]
  The MongoDB GUI

mongodb-dev/bionic,bionic 2:1.1.2-6ubuntu3 all
  MongoDB C++ Driver (transitional package)

mongodb-server/bionic-updates,bionic-updates,bionic-security,bionic-security,now 1:3.6.3-0ubuntu1.4 all [インストール済み、自動]
  object/document-oriented database (managed server package)

mongodb-server-core/bionic-updates,bionic-security,now 1:3.6.3-0ubuntu1.4 amd64 [インストール済み、自動]
  object/document-oriented database (server binaries package)

nagios-plugins-contrib/bionic 21.20170222 amd64
  Plugins for nagios compatible monitoring systems

php-analog/bionic,bionic 1.0.7-2 all
  PHP micro logging package

php-horde-cache/bionic,bionic 2.5.5-1 all
  Horde Caching API

php-horde-vfs/bionic,bionic 2.4.0-1ubuntu1 all
  Virtual File System API

php-mongodb/bionic 1.3.4-1build1 amd64
  MongoDB driver for PHP

postgresql-10-plv8/bionic 1:1.4.10.ds-2 amd64
  Procedural language interface between PostgreSQL and JavaScript

prometheus-mongodb-exporter/bionic 1.0.0-2 amd64
  Prometheus exporter for MongoDB

puppet-module-puppetlabs-mongodb/bionic,bionic 0.7.0-2 all
  Puppet module for managing mongodb installation and configuration

python-bson/bionic,now 3.6.1+dfsg1-1 amd64 [インストール済み、自動]
  Python implementation of BSON for MongoDB

python-bson-ext/bionic,now 3.6.1+dfsg1-1 amd64 [インストール済み、自動]
  C-coded extension to the python-bson package

python-celery/bionic,bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (Python2 version)

python-celery-common/bionic,bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (common files)

python-celery-doc/bionic,bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (Documentation)

python-django-q/bionic,bionic 0.9.4-1 all
  Django multiprocessing distributed task queue (Python 2 version)

python-django-q-doc/bionic,bionic 0.9.4-1 all
  Django multiprocessing distributed task queue (Documentation)

python-gridfs/bionic,bionic,now 3.6.1+dfsg1-1 all [インストール済み、自動]
  Python implementation of GridFS for MongoDB

python-loofah/bionic,bionic 0.1-1 all
  debile helper to rebuild a set of existing packages

python-mockupdb/bionic,bionic 1.3.0-1 all
  MongoDB Wire Protocol server library - Python 2.x

python-mongoengine/bionic,bionic 0.10.6-1 all
  Python Document-Object Mapper for working with MongoDB

python-mongoengine-doc/bionic,bionic 0.10.6-1 all
  Python Document-Object Mapper for working with MongoDB (documentation)

python-motor/bionic,bionic 1.2.1-1build1 all
  full-featured, non-blocking MongoDB driver - Python 2.x

python-pymongo/bionic,now 3.6.1+dfsg1-1 amd64 [インストール済み]
  Python interface to the MongoDB document-oriented database

python-pymongo-doc/bionic,bionic 3.6.1+dfsg1-1 all
  Python interface to the MongoDB document-oriented database (documentation)

python-pymongo-ext/bionic,now 3.6.1+dfsg1-1 amd64 [インストール済み、自動]
  C-coded extension to the python-pymongo package

python3-bson/bionic 3.6.1+dfsg1-1 amd64
  Python3 implementation of BSON for MongoDB

python3-bson-ext/bionic 3.6.1+dfsg1-1 amd64
  C-coded extension to the python3-bson package

python3-celery/bionic,bionic 4.1.0-2ubuntu1 all
  async task/job queue based on message passing (Python3 version)

python3-django-q/bionic,bionic 0.9.4-1 all
  Django multiprocessing distributed task queue (Python 3 version)

python3-gridfs/bionic,bionic 3.6.1+dfsg1-1 all
  Python3 implementation of GridFS for MongoDB

python3-mockupdb/bionic,bionic 1.3.0-1 all
  MongoDB Wire Protocol server library - Python 3.x

python3-mongoengine/bionic,bionic 0.10.6-1 all
  Python 3 Document-Object Mapper for working with MongoDB

python3-motor/bionic,bionic 1.2.1-1build1 all
  full-featured, non-blocking MongoDB driver - Python 3.x

python3-pymongo/bionic 3.6.1+dfsg1-1 amd64
  Python3 interface to the MongoDB document-oriented database

python3-pymongo-ext/bionic 3.6.1+dfsg1-1 amd64
  C-coded extension to the python3-pymongo package

ros-melodic-mongodb-log/bionic 0.5.2-1bionic.20220127.165807 amd64
  The mongodb_log package

ros-melodic-mongodb-log-dbgsym/bionic 0.5.2-1bionic.20220127.165807 amd64
  debug symbols for ros-melodic-mongodb-log

ros-melodic-mongodb-store/bionic 0.5.2-1bionic.20220127.165316 amd64 [0.5.2-1bionic.20210921.221418 からアップグレード可]
  A package to support MongoDB-based storage and analysis for data from a ROS system, eg.

ros-melodic-mongodb-store-dbgsym/bionic 0.5.2-1bionic.20220127.165316 amd64
  debug symbols for ros-melodic-mongodb-store

ros-melodic-mongodb-store-msgs/bionic 0.5.2-1bionic.20220127.164907 amd64 [0.5.2-1bionic.20210921.211551 からアップグレード可]
  The mongodb_store_msgs package

ros-melodic-moveit-ros-warehouse/bionic 1.0.11-1bionic.20220913.173644 amd64 [1.0.8-1bionic.20211213.203908 からアップグレード可]
  Components of MoveIt! connecting to MongoDB

ros-melodic-warehouse-ros-mongo/bionic 0.9.1-1bionic.20220510.082207 amd64
  Implementation of warehouse_ros for MongoDB

rsyslog-mongodb/bionic-updates,bionic-security 8.32.0-1ubuntu4.2 amd64
  MongoDB output plugin for rsyslog

ruby-connection-pool/bionic,bionic 2.2.0-1 all
  generic connection pool for ruby

ruby-em-mongo/bionic,bionic 0.5.1-1 all
  Ruby EventMachine driver for MongoDB

ruby-mongo/bionic,bionic 2.5.1-1 all
  Ruby driver for MongoDB

ruby-origin/bionic,bionic 2.2.0-1 all
  Simple DSL for MongoDB query generation

syslog-ng/bionic,bionic 3.13.2-3 all
  Enhanced system logging daemon (metapackage)

syslog-ng-core/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (core)

syslog-ng-dbg/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (debug symbols)

syslog-ng-dev/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (development files)

syslog-ng-mod-add-contextual-data/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (add-contextual-data plugin)

syslog-ng-mod-amqp/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (AMQP plugin)

syslog-ng-mod-basicfuncs-plus/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (extra template functions)

syslog-ng-mod-extra/bionic,bionic 3.13.2-3 all
  Enhanced system logging daemon (extra plugins)

syslog-ng-mod-geoip/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (GeoIP plugin)

syslog-ng-mod-getent/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (getent plugin)

syslog-ng-mod-graphite/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (graphite plugin)

syslog-ng-mod-grok/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (Grok parser support)

syslog-ng-mod-journal/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (systemd journal plugin)

syslog-ng-mod-json/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (JSON plugin)

syslog-ng-mod-kafka/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (kafka destination)

syslog-ng-mod-lua/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (Lua destination)

syslog-ng-mod-map-value-pairs/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (map-value-pairs plugin)

syslog-ng-mod-mongodb/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (MongoDB plugin)

syslog-ng-mod-perl/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (Perl destination)

syslog-ng-mod-python/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (Python plugin)

syslog-ng-mod-redis/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (Redis plugin)

syslog-ng-mod-riemann/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (Riemann destination)

syslog-ng-mod-rss/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (RSS destination)

syslog-ng-mod-smtp/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (SMTP plugin)

syslog-ng-mod-snmptrapd-parser/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (snmptrapd-parser plugin)

syslog-ng-mod-sql/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (SQL plugin)

syslog-ng-mod-stardate/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (stardate plugin)

syslog-ng-mod-stomp/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (STOMP plugin)

syslog-ng-mod-tag-parser/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (tag parser plugin)

syslog-ng-mod-trigger/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (trigger source)

syslog-ng-mod-xml-parser/bionic 3.13.2-3 amd64
  Enhanced system logging daemon (xml parser plugin)

syslog-ng-mod-zmq/bionic 0.6.2-0.1 amd64
  Enhanced system logging daemon (ZeroMQ destination)

uwsgi-plugin-mongo/bionic 2.0.15+10+0.0.3 amd64
  MongoDB/GridFS plugins for uWSGI

w1retap-mongo/bionic 1.4.4-3 amd64
  Data logger for 1-Wire weather sensors (MongoDB plugin)
k-okada commented 2 years ago

I see, even if we can connect by mongo client mongo localhost:27017, we need to change bind_ip

$ cat /etc/mongodb.conf | grep -v ^#
dbpath=/var/lib/mongodb
logpath=/var/log/mongodb/mongodb.log
logappend=true
bind_ip = 0.0.0.0
journal=true
knorth55 commented 2 years ago

my laptop doesn't need to change bind_ip, but pr1040 needs to change bind_ip. the bind_ip is related to firewall settings, so it depends on user's environment.

$ cat /etc/mongodb.conf | grep -v ^#

dbpath=/var/lib/mongodb

logpath=/var/log/mongodb/mongodb.log

logappend=true

bind_ip = 127.0.0.1

journal=true