OpenADR icon indicating copy to clipboard operation
OpenADR copied to clipboard

openadr_vtn20b_1 exited with code 1

Open 108618034 opened this issue 4 years ago • 13 comments

i am using docker-compose up --build, it stop at "openadr_vtn20b_1 exited with code 1". how can i fix it?

vtn20b_1 | at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source) ~[?:?]

vtn20b_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?] vtn20b_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnection.java:856) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$2000(XMPPTCPConnection.java:155) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1171) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$1000(XMPPTCPConnection.java:1092) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1112) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at java.lang.Thread.run(Unknown Source) ~[?:?] vtn20b_1 | [main] INFO c.a.o.s.c.v.WebDestructor - Executer Oadr20DREventPushServiceExecutor- with active 0 work has killed rabbitmq_1 | 2021-09-05 13:19:47.776 [info] <0.1477.0> closing AMQP connection <0.1477.0> (172.18.0.7:58140 -> 172.18.0.4:5672, vhost: '/', user: 'admin') rabbitmq_1 | 2021-09-05 13:19:47.794 [info] <0.1484.0> closing AMQP connection <0.1484.0> (172.18.0.7:58142 -> 172.18.0.4:5672, vhost: '/', user: 'admin') openadr_vtn20b_1 exited with code 1

108618034 avatar Sep 05 '21 13:09 108618034

look like your openfire (xmpp broker) middleware wasn’t up so when vtn tried to make the ssl handshake it failed (unknown source).

Le 5 sept. 2021 à 15:24, 108618034 @.***> a écrit :

i am using docker-compose up --build, it stop at "openadr_vtn20b_1 exited with code 1". how can i fix it?

vtn20b_1 | at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source) ~[?:?]

vtn20b_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?] vtn20b_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnection.java:856) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$2000(XMPPTCPConnection.java:155) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1171) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$1000(XMPPTCPConnection.java:1092) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1112) ~[smack-tcp-4.3.4.jar!/:4.3.4] vtn20b_1 | at java.lang.Thread.run(Unknown Source) ~[?:?] vtn20b_1 | [main] INFO c.a.o.s.c.v.WebDestructor - Executer Oadr20DREventPushServiceExecutor- with active 0 work has killed rabbitmq_1 | 2021-09-05 13:19:47.776 [info] <0.1477.0> closing AMQP connection <0.1477.0> (172.18.0.7:58140 -> 172.18.0.4:5672, vhost: '/', user: 'admin') rabbitmq_1 | 2021-09-05 13:19:47.794 [info] <0.1484.0> closing AMQP connection <0.1484.0> (172.18.0.7:58142 -> 172.18.0.4:5672, vhost: '/', user: 'admin') openadr_vtn20b_1 exited with code 1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/avob/OpenADR/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLCPKVTG5Y4XOAKFIFBFLUANVPTANCNFSM5DO2BFZA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zanni avatar Sep 05 '21 13:09 zanni

Thanks for your response,

so i have to open openfire fisrt?( http://localhost:9090) Is there any setting to set?

108618034 avatar Sep 05 '21 13:09 108618034

感謝您的答复,

所以我必須打開openfire fisrt?(http://localhost:9090) 有什麼設置要設置嗎?

it seems to have successfully installed.

openfire_1 | http://xmpp.vtn.oadr.com:9090 openfire_1 | https://xmpp.vtn.oadr.com:9091 openfire_1 | Successfully loaded plugin 'admin'. openfire_1 | Successfully loaded plugin 'openfireoadrplugin-openfire-plugin-assembly'. openfire_1 | Successfully loaded plugin 'search'. openfire_1 | Finished processing all plugins.

108618034 avatar Sep 05 '21 13:09 108618034

docker-compose up --build is supposed to set up everything for you. Ensure every middle have been correctly initialized before VTN / drprogram / VEN. Ensure certificates are installed into your local repo to access UI.

It’s been a while (less than a year) I did not launch this demo so slight changes might be required to adapt to new version of some tool. Recent versions of docker-compose are not compatible for example (tested with 1.28.5).

Le 5 sept. 2021 à 15:34, 108618034 @.***> a écrit :

Thanks for your response,

so i have to open openfire fisrt?( http://localhost:9090 http://localhost:9090/) Is there any setting to set?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/avob/OpenADR/issues/20#issuecomment-913155924, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLCPOJGYIWRXOH7R2PC7DUANWW7ANCNFSM5DO2BFZA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zanni avatar Sep 05 '21 13:09 zanni

Then did you success to launch the VTN ?

Le 5 sept. 2021 à 15:40, 108618034 @.***> a écrit :

感謝您的答复,

所以我必須打開openfire fisrt?(http://localhost:9090) http://localhost:9090%EF%BC%89 有什麼設置要設置嗎?

it seems to have successfully installed.

openfire_1 | http://xmpp.vtn.oadr.com:9090 http://xmpp.vtn.oadr.com:9090/ openfire_1 | https://xmpp.vtn.oadr.com:9091 https://xmpp.vtn.oadr.com:9091/ openfire_1 | Successfully loaded plugin 'admin'. openfire_1 | Successfully loaded plugin 'openfireoadrplugin-openfire-plugin-assembly'. openfire_1 | Successfully loaded plugin 'search'. openfire_1 | Finished processing all plugins.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/avob/OpenADR/issues/20#issuecomment-913156851, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLCPKKPSQE6XYN7KGSCRTUANXMTANCNFSM5DO2BFZA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zanni avatar Sep 05 '21 13:09 zanni

no i didn't succeed. i am work on at ubuntu 18.04 docker-compose version 1.25.5. so i have to chang to 1.28.5?

108618034 avatar Sep 05 '21 14:09 108618034

Im on Ubuntu 20.04 and got the docker build to work. I also posted some links on my issue for getting the correct docker compose version if it helps at all. How do you launch the VTN when build success?

bbartling avatar Sep 05 '21 19:09 bbartling

i work on ubuntu 18.04 docker-compose 1.28.5, and it seem it was work, but i can't open https://vtn.oadr.com:8181/testvtn/,however i can open RabbitMQ and Openfire .

108618034 avatar Sep 06 '21 05:09 108618034

Hi,

I committed a file containing the logs of a successful demo start on master branch: https://github.com/avob/OpenADR/blob/master/successfull_build.txt

Multiple things happenning:

  • build image run, compile app if it's not yet done. This image will be stopped when everything has been provided to further images
  • middleware image starts: postgres_1, openfire_1, rabbitmq_1
  • vtn image starts: vtn20b_1
  • drprogram starts: dummy-drprogram_1
  • ven starts: ven20b_1
  • then VTN / DRP / VEN starts interacting as described in README file.

This demo has been launched on macOS, with Docker version 20.10.5, build 55c4c88 and docker-compose version 1.28.5, build c4eb3a1f

This process described in README has been followed i.e certificates are generated correctly, vtn.oadr.com has been added to DNS provider, admin certificates has been added to browser certificates provider (required to access VTN UI).

Hope it will help

zanni avatar Sep 06 '21 06:09 zanni

Thanks for your response, i have a question about the certificates, how can i add admin certificates to browser certificates provider(use ./generate_test_cert.sh ?)

108618034 avatar Sep 06 '21 07:09 108618034

This step depends wildly on your browser / system. For example in Firefox / windows, a client certificate seems to be added like this: https://support.globalsign.com/digital-certificates/digital-certificate-installation/install-client-digital-certificate-firefox-windows https://support.globalsign.com/digital-certificates/digital-certificate-installation/install-client-digital-certificate-firefox-windows

Client certificate has been generated by generate_test_cert.sh and are located in ./cert folder. Multiple user are generated, including users used by java apps (vtn / ten …).

You should use admin.* certificates, it can be admin.oadr.com.p12 (as in the tuto), or it can be admin.oadr.com.key + admin.oadr.com.crt (postman http client for example).

Le 6 sept. 2021 à 09:27, 108618034 @.***> a écrit :

Thanks for your response, i have a question about the certificates, how can i add admin certificates to browser certificates provider(use ./generate_test_cert.sh ?)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/avob/OpenADR/issues/20#issuecomment-913411944, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLCPPOLO73LG4FEZZXD6DUARUOHANCNFSM5DO2BFZA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zanni avatar Sep 06 '21 07:09 zanni

Your local DNS might not be set up : vtn.oadr.com http://vtn.oadr.com/ should be set to local ip (127.0.0.1)

Le 6 sept. 2021 à 07:46, 108618034 @.***> a écrit :

i work on ubuntu 18.04 docker-compose 1.28.5, and it seem it was work, but i can't open https://vtn.oadr.com:8181/testvtn/,however https://vtn.oadr.com:8181/testvtn/,however i can open RabbitMQ and Openfire .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/avob/OpenADR/issues/20#issuecomment-913360498, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACLCPJNZT4NP3YOZXFKXUTUARIUVANCNFSM5DO2BFZA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zanni avatar Sep 06 '21 07:09 zanni

I am facing the same issue. Did you able to run https://vtn.oadr.com:8181/testvtn/ and https://vtn.oadr.com:8181/testvtn/swagger-ui.html?

parashar18 avatar May 09 '22 21:05 parashar18