質問編集履歴

7

記載ミス

2019/08/16 04:09

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- http://txclr.hatenablog.com/entry/2015/04/24/095433
5
+ [http://txclr.hatenablog.com/entry/2015/04/24/095433](http://txclr.hatenablog.com/entry/2015/04/24/095433)
6
6
 
7
7
  このサイトを見ながらMongoDBに外部からアクセスしようとしています。
8
8
 

6

記載ミス

2019/08/16 04:09

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -136,7 +136,7 @@
136
136
 
137
137
 
138
138
 
139
- mongo.confのdbpathをと同じパスにしてもmongoが動かなくなってしまいます。
139
+ mongo.confのdbpathをと同じパスにするとそそもmongoが動かなくなってしまいます。
140
140
 
141
141
  ```
142
142
 

5

記載ミス

2019/08/15 07:50

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -46,7 +46,7 @@
46
46
 
47
47
  一方で、現在以下のコマンドを実行していないとmongoがうごかない状態になっています。
48
48
 
49
- mongo.confのdbpathを下と同じパスにしてもmongoが動かなくなってしまいます。
49
+
50
50
 
51
51
  ```
52
52
 
@@ -134,7 +134,9 @@
134
134
 
135
135
  ```
136
136
 
137
+
138
+
137
- そこでパス上のものと同じパスにしましただめで
139
+ mongo.confのdbpathと同じパスにしてもmongo動かなくなってまいます
138
140
 
139
141
  ```
140
142
 

4

変更

2019/08/15 05:43

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -24,17 +24,23 @@
24
24
 
25
25
  ### 発生している問題・エラーメッセージ
26
26
 
27
+ ```
27
28
 
29
+ hasegawa@hasegawa-W76OC:/$ sudo mongod -f /etc/mongod.conf --shutdown
30
+
31
+ 2019-08-15T14:06:37.508+0900 I STORAGE [main] Max cache overflow file size custom option: 0
32
+
33
+ There doesn't seem to be a server running with dbpath: /var/lib/mongodb
28
34
 
29
35
  ```
30
36
 
31
- hasegawa@hasegawa-W76OC:/etc$ sudo mongod -f /etc/mongod.conf --shutdown
32
37
 
33
- 2019-08-15T14:09:43.827+0900 I STORAGE [main] Max cache overflow file size custom option: 0
34
38
 
35
- There doesn't seem to be a server running with dbpath: /usr/local/var/mongodb
36
39
 
37
- ```
40
+
41
+
42
+
43
+
38
44
 
39
45
 
40
46
 
@@ -128,6 +134,18 @@
128
134
 
129
135
  ```
130
136
 
137
+ そこでパスを上のものと同じパスにしましたがだめでした。
138
+
139
+ ```
140
+
141
+ hasegawa@hasegawa-W76OC:/etc$ sudo mongod -f /etc/mongod.conf --shutdown
142
+
143
+ 2019-08-15T14:09:43.827+0900 I STORAGE [main] Max cache overflow file size custom option: 0
144
+
145
+ There doesn't seem to be a server running with dbpath: /usr/local/var/mongodb
146
+
147
+ ```
148
+
131
149
 
132
150
 
133
151
  何か解決策がありましたらコメントお願いします。

3

記載ミス

2019/08/15 05:42

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -130,7 +130,7 @@
130
130
 
131
131
 
132
132
 
133
- 何か解決策があるかコメントお願いします。
133
+ 何か解決策がありましコメントお願いします。
134
134
 
135
135
 
136
136
 

2

変更

2019/08/15 05:39

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -38,6 +38,102 @@
38
38
 
39
39
 
40
40
 
41
+ 一方で、現在以下のコマンドを実行していないとmongoがうごかない状態になっています。
42
+
43
+ mongo.confのdbpathを下と同じパスにしてもmongoが動かなくなってしまいます。
44
+
45
+ ```
46
+
47
+ sudo mongod -dbpath /usr/local/var/mongodb
48
+
49
+ 2019-08-15T14:12:39.026+0900 I STORAGE [main] Max cache overflow file size custom option: 0
50
+
51
+ 2019-08-15T14:12:39.030+0900 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
52
+
53
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] MongoDB starting : pid=15474 port=27017 dbpath=/usr/local/var/mongodb 64-bit host=hasegawa-W76OC
54
+
55
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] db version v4.0.12
56
+
57
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] git version: 5776e3cbf9e7afe86e6b29e22520ffb6766e95d4
58
+
59
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.1.1 11 Sep 2018
60
+
61
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] allocator: tcmalloc
62
+
63
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] modules: none
64
+
65
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] build environment:
66
+
67
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] distmod: ubuntu1804
68
+
69
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] distarch: x86_64
70
+
71
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] target_arch: x86_64
72
+
73
+ 2019-08-15T14:12:39.035+0900 I CONTROL [initandlisten] options: { storage: { dbPath: "/usr/local/var/mongodb" } }
74
+
75
+ 2019-08-15T14:12:39.035+0900 I STORAGE [initandlisten] Detected data files in /usr/local/var/mongodb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
76
+
77
+ 2019-08-15T14:12:39.036+0900 I STORAGE [initandlisten]
78
+
79
+ 2019-08-15T14:12:39.036+0900 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
80
+
81
+ 2019-08-15T14:12:39.036+0900 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
82
+
83
+ 2019-08-15T14:12:39.036+0900 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1359M,cache_overflow=(file_max=0M),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),
84
+
85
+ 2019-08-15T14:12:40.342+0900 I STORAGE [initandlisten] WiredTiger message [1565845960:342769][15474:0x7f9b000d2a40], txn-recover: Main recovery loop: starting at 4/6272 to 5/256
86
+
87
+ 2019-08-15T14:12:40.539+0900 I STORAGE [initandlisten] WiredTiger message [1565845960:539171][15474:0x7f9b000d2a40], txn-recover: Recovering log 4 through 5
88
+
89
+ 2019-08-15T14:12:40.718+0900 I STORAGE [initandlisten] WiredTiger message [1565845960:718584][15474:0x7f9b000d2a40], txn-recover: Recovering log 5 through 5
90
+
91
+ 2019-08-15T14:12:40.824+0900 I STORAGE [initandlisten] WiredTiger message [1565845960:824962][15474:0x7f9b000d2a40], txn-recover: Set global recovery timestamp: 0
92
+
93
+ 2019-08-15T14:12:41.196+0900 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
94
+
95
+ 2019-08-15T14:12:41.307+0900 I CONTROL [initandlisten]
96
+
97
+ 2019-08-15T14:12:41.307+0900 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
98
+
99
+ 2019-08-15T14:12:41.307+0900 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
100
+
101
+ 2019-08-15T14:12:41.307+0900 I CONTROL [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
102
+
103
+ 2019-08-15T14:12:41.307+0900 I CONTROL [initandlisten]
104
+
105
+ 2019-08-15T14:12:41.308+0900 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost.
106
+
107
+ 2019-08-15T14:12:41.308+0900 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server.
108
+
109
+ 2019-08-15T14:12:41.308+0900 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP
110
+
111
+ 2019-08-15T14:12:41.308+0900 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to
112
+
113
+ 2019-08-15T14:12:41.308+0900 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the
114
+
115
+ 2019-08-15T14:12:41.308+0900 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning.
116
+
117
+ 2019-08-15T14:12:41.308+0900 I CONTROL [initandlisten]
118
+
119
+ 2019-08-15T14:12:41.338+0900 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/usr/local/var/mongodb/diagnostic.data'
120
+
121
+ 2019-08-15T14:12:41.339+0900 I NETWORK [initandlisten] waiting for connections on port 27017
122
+
123
+ 2019-08-15T14:13:03.715+0900 I NETWORK [listener] connection accepted from 127.0.0.1:51724 #1 (1 connection now open)
124
+
125
+ 2019-08-15T14:13:03.735+0900 I NETWORK [conn1] received client metadata from 127.0.0.1:51724 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.12" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "18.04" } }
126
+
127
+ 2019-08-15T14:13:05.801+0900 I NETWORK [conn1] end connection 127.0.0.1:51724 (0 connections now open)
128
+
129
+ ```
130
+
131
+
132
+
133
+ 何か解決策があるかたはコメントお願いします。
134
+
135
+
136
+
41
137
 
42
138
 
43
139
  ### 補足情報(FW/ツールのバージョンなど)

1

変更

2019/08/15 05:35

投稿

aiai8976
aiai8976

スコア112

test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,11 @@
28
28
 
29
29
  ```
30
30
 
31
- エラーメッセージ
31
+ hasegawa@hasegawa-W76OC:/etc$ sudo mongod -f /etc/mongod.conf --shutdown
32
+
33
+ 2019-08-15T14:09:43.827+0900 I STORAGE [main] Max cache overflow file size custom option: 0
34
+
35
+ There doesn't seem to be a server running with dbpath: /usr/local/var/mongodb
32
36
 
33
37
  ```
34
38