@@ -23,17 +23,7 @@ Connection Troubleshooting
23
23
24
24
.. note::
25
25
26
- This page addresses only connection issues. If you encounter other
27
- issues with MongoDB or the driver, visit the following resources:
28
-
29
- - The :ref:`Issues & Help <java-issues-and-help>` topic for
30
- information about reporting bugs, contributing to the driver, and
31
- finding more resources
32
- - The `MongoDB Community Forums <{+communityForums+}>`__ for
33
- questions, discussions, or general technical support
34
- - The :ref:`Frequently Asked Questions (FAQ) <java-faq>` section for
35
- common questions and corresponding answers about the
36
- {+driver-short+}
26
+ Test
37
27
38
28
.. replacement:: server-selection-timeout-error
39
29
@@ -60,109 +50,109 @@ Connection Troubleshooting
60
50
61
51
.. _java-authentication-error:
62
52
63
- .. replacement:: scram-failure-error
53
+ .. replacement:: scram-failure-error
64
54
65
- .. code-block:: none
66
- :copyable: false
55
+ .. code-block:: none
56
+ :copyable: false
67
57
68
- Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
58
+ Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
69
59
70
- .. replacement:: check-credentials-formatting-anchor
60
+ .. replacement:: check-credentials-formatting-anchor
71
61
72
- .. _java-connection-string-auth:
62
+ .. _java-connection-string-auth:
73
63
74
- .. replacement:: learn-more-connection-string-admonition
64
+ .. replacement:: learn-more-connection-string-admonition
75
65
76
- .. tip::
66
+ .. tip::
77
67
78
- For more information about using connection strings,
79
- see :ref:`Connection URI <connection-uri>` in the Connection Guide.
68
+ For more information about using connection strings,
69
+ see :ref:`Connection URI <connection-uri>` in the Connection Guide.
80
70
81
- .. replacement:: verify-authentication-database-anchor
71
+ .. replacement:: verify-authentication-database-anchor
82
72
83
- .. _java-verify-auth-db:
73
+ .. _java-verify-auth-db:
84
74
85
- .. replacement:: authsource-param-code-block
75
+ .. replacement:: authsource-param-code-block
86
76
87
- .. code-block:: java
88
- :copyable: false
77
+ .. code-block:: java
78
+ :copyable: false
89
79
90
- String uri = "mongodb://<username>:<password>@<hostname>:<port>/?authSource=users&authMechanism=SCRAM-SHA-256";
91
- MongoClient mongoClient = MongoClients.create(uri);
80
+ String uri = "mongodb://<username>:<password>@<hostname>:<port>/?authSource=users&authMechanism=SCRAM-SHA-256";
81
+ MongoClient mongoClient = MongoClients.create(uri);
92
82
93
- .. replacement:: credentials-provider-alternative-method-description
83
+ .. replacement:: credentials-provider-alternative-method-description
94
84
95
- If you construct a client by using a ``MongoCredential``, the builder method
96
- corresponds to the authentication mechanism. The following code shows the builder
97
- method for the ``SCRAM-SHA-256`` authentication mechanism:
85
+ If you construct a client by using a ``MongoCredential``, the builder method
86
+ corresponds to the authentication mechanism. The following code shows the builder
87
+ method for the ``SCRAM-SHA-256`` authentication mechanism:
98
88
99
- .. code-block:: java
100
- :copyable: false
89
+ .. code-block:: java
90
+ :copyable: false
101
91
102
- MongoCredential credential = MongoCredential.createScramSha256Credential("<username>", "<authenticationDb>", "<password>");
92
+ MongoCredential credential = MongoCredential.createScramSha256Credential("<username>", "<authenticationDb>", "<password>");
103
93
104
94
105
- .. replacement:: authentication-guide-reference
95
+ .. replacement:: authentication-guide-reference
106
96
107
- To learn more about specifying authentication mechanisms, see the :ref:`authentication-mechanisms` and
108
- :ref:`enterprise-authentication-mechanisms` guides.
97
+ To learn more about specifying authentication mechanisms, see the :ref:`authentication-mechanisms` and
98
+ :ref:`enterprise-authentication-mechanisms` guides.
109
99
110
- .. replacement:: verify-authentication-mechanism-anchor
100
+ .. replacement:: verify-authentication-mechanism-anchor
111
101
112
- .. _java-verify-auth-mechanism:
102
+ .. _java-verify-auth-mechanism:
113
103
114
- .. replacement:: authsource-param-code-block
104
+ .. replacement:: authsource-param-code-block
115
105
116
- .. code-block:: java
117
- :copyable: false
106
+ .. code-block:: java
107
+ :copyable: false
118
108
119
- MongoClient mongoClient = MongoClients.create("mongodb://<username>:<password>@<hostname>:<port>/?authSource=users");
109
+ MongoClient mongoClient = MongoClients.create("mongodb://<username>:<password>@<hostname>:<port>/?authSource=users");
120
110
121
- .. replacement:: dns-resolution-anchor
111
+ .. replacement:: dns-resolution-anchor
122
112
123
- .. _java-dns-resolution-error:
113
+ .. _java-dns-resolution-error:
124
114
125
- .. replacement:: dns-error-message
115
+ .. replacement:: dns-error-message
126
116
127
- .. code-block:: none
128
- :copyable: false
117
+ .. code-block:: none
118
+ :copyable: false
129
119
130
- com.mongodb.MongoSocketWriteException: Exception sending message
120
+ com.mongodb.MongoSocketWriteException: Exception sending message
131
121
132
- .. replacement:: check-the-number-of-connections-anchor
122
+ .. replacement:: check-the-number-of-connections-anchor
133
123
134
- .. _java-connection-num-connections:
124
+ .. _java-connection-num-connections:
135
125
136
- .. replacement:: mongo-client-class
126
+ .. replacement:: mongo-client-class
137
127
138
- ``MongoClient``
128
+ ``MongoClient``
139
129
140
- .. replacement:: max-pool-size-param
130
+ .. replacement:: max-pool-size-param
141
131
142
- ``maxPoolSize``
132
+ ``maxPoolSize``
143
133
144
- .. replacement:: max-pool-size-default
134
+ .. replacement:: max-pool-size-default
145
135
146
- ``100``
136
+ ``100``
147
137
148
- .. replacement:: max-idle-time-param
138
+ .. replacement:: max-idle-time-param
149
139
150
- ``maxIdleTimeMS``
140
+ ``maxIdleTimeMS``
151
141
152
- .. replacement:: connection-pools-learn-more
142
+ .. replacement:: connection-pools-learn-more
153
143
154
- To learn more about how connection pooling works in the driver, see
155
- :ref:`java-faq-connection-pool` in the FAQ.
144
+ To learn more about how connection pooling works in the driver, see
145
+ :ref:`java-faq-connection-pool` in the FAQ.
156
146
157
- .. replacement:: scram-failure-error
147
+ .. replacement:: scram-failure-error
158
148
159
- .. code-block::
149
+ .. code-block::
160
150
161
- Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
151
+ Command failed with error 18 (AuthenticationFailed): 'Authentication failed.' on server localhost:27017.
162
152
163
- .. replacement:: check-credentials-formatting-anchor
153
+ .. replacement:: check-credentials-formatting-anchor
164
154
165
- .. _java-troubleshooting-connection-string-auth:
155
+ .. _java-troubleshooting-connection-string-auth:
166
156
167
157
.. _java-connection-certificate:
168
158
0 commit comments