Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[che-samples] mongo-db sample cannot connect to mongo database #20688

Closed
vitaliy-guliy opened this issue Oct 25, 2021 · 0 comments
Closed

[che-samples] mongo-db sample cannot connect to mongo database #20688

vitaliy-guliy opened this issue Oct 25, 2021 · 0 comments
Assignees
Labels
area/devfile-spec Issues related to Devfile v2 area/samples kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current
Milestone

Comments

@vitaliy-guliy
Copy link
Contributor

Describe the bug

It's impossible to start Java-MongoDB sample due to database connection issues.

2021-10-25 15:55:09.659  INFO 182 --- [k-mongodb:27017] org.mongodb.driver.cluster               : Exception in monitor thread while connecting to server java-guestbook-mongodb:27017

com.mongodb.MongoSocketOpenException: Exception opening socket
        at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:67) ~[mongodb-driver-core-3.8.2.jar!/:na]
        at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:126) ~[mongodb-driver-core-3.8.2.jar!/:na]
        at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:117) ~[mongodb-driver-core-3.8.2.jar!/:na]
        at java.lang.Thread.run(Thread.java:748) [na:1.8.0_222]
Caused by: java.net.SocketTimeoutException: connect timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_222]
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_222]
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_222]
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_222]
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_222]
        at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_222]
        at com.mongodb.internal.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:64) ~[mongodb-driver-core-3.8.2.jar!/:na]
        at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:62) ~[mongodb-driver-core-3.8.2.jar!/:na]
        ... 3 common frames omitted

Actual for Devfle v1 and v2

Che version

next (development version)

Steps to reproduce

  1. Create a workspace from Java with Spring Boot and MongoDB stack
  2. Execute build backend and build frontend commands
  3. Launch run backend command, check output

Expected behavior

Working sample

Runtime

minikube

Screenshots

Screenshot from 2021-10-25 18-56-31

Installation method

chectl/next

Environment

Linux

Eclipse Che Logs

No response

Additional context

No response

@vitaliy-guliy vitaliy-guliy added kind/bug Outline of a bug - must adhere to the bug report template. team/plugins severity/P2 Has a minor but important impact to the usage or development of the system. area/samples labels Oct 25, 2021
@svor svor added area/devfile/v1 area/devfile-spec Issues related to Devfile v2 sprint/next severity/P1 Has a major impact to usage or development of the system. and removed severity/P2 Has a minor but important impact to the usage or development of the system. labels Dec 20, 2021
@svor svor mentioned this issue Dec 20, 2021
15 tasks
@svor svor removed the sprint/next label Dec 22, 2021
@svor svor added this to the 7.42 milestone Dec 22, 2021
@svor svor mentioned this issue Jan 11, 2022
17 tasks
@svor svor modified the milestones: 7.42, 7.43 Jan 12, 2022
@svor svor mentioned this issue Jan 31, 2022
18 tasks
@svor svor modified the milestones: 7.43, 7.44 Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devfile-spec Issues related to Devfile v2 area/samples kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/current
Projects
None yet
Development

No branches or pull requests

2 participants