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

docker-compose up #1

Open
fkgl opened this issue Nov 12, 2021 · 2 comments
Open

docker-compose up #1

fkgl opened this issue Nov 12, 2021 · 2 comments

Comments

@fkgl
Copy link

fkgl commented Nov 12, 2021

Hi,

I'm trying to use your old version of DLASeR using Docker.

I have followed all the readme instructions but I got the following error:

even when I try http://localhost:8000 on browser. I do not get {'mesage': 'only POST requests are allowed'}

Please how can I fixe these problems?

simulation-web-1 | org.apache.http.conn.HttpHostConnectException: Connect to localhost:8000 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

simulation-web-1 | at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159)

simulation-web-1 | at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)

simulation-web-1 | at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394)

simulation-web-1 | at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)

simulation-web-1 | at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)

simulation-web-1 | at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)

simulation-web-1 | at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)

simulation-web-1 | at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

simulation-web-1 | at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)

simulation-web-1 | at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:221)

simulation-web-1 | at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)

simulation-web-1 | at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140)

simulation-web-1 | at smc.runmodes.SMCConnector.send(SMCConnector.java:205)

simulation-web-1 | at smc.runmodes.SMCConnector.send(SMCConnector.java:174)

simulation-web-1 | at smc.runmodes.SMCConnector.send(SMCConnector.java:166)

simulation-web-1 | at smc.runmodes.MachineLearning.testing2ThresholdGoals_1OptimizationGoal(MachineLearning.java:89)

simulation-web-1 | at smc.runmodes.MachineLearning.testing(MachineLearning.java:80)

simulation-web-1 | at smc.runmodes.MachineLearning.startVerification(MachineLearning.java:48)

simulation-web-1 | at smc.runmodes.SMCConnector.verify(SMCConnector.java:118)

simulation-web-1 | at mapek.FeedbackLoop.analysis(FeedbackLoop.java:181)

simulation-web-1 | at mapek.FeedbackLoop.monitor(FeedbackLoop.java:153)

simulation-web-1 | at mapek.FeedbackLoop.start(FeedbackLoop.java:91)

simulation-web-1 | at main.Main.lambda$start$0(Main.java:50)

simulation-web-1 | at java.lang.Thread.run(Thread.java:748)

simulation-web-1 | Caused by: java.net.ConnectException: Connection refused (Connection refused)

simulation-web-1 | at java.net.PlainSocketImpl.socketConnect(Native Method)

simulation-web-1 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

simulation-web-1 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

simulation-web-1 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

simulation-web-1 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

simulation-web-1 | at java.net.Socket.connect(Socket.java:607)

simulation-web-1 | at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:75)

simulation-web-1 | at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)

simulation-web-1 | ... 23 more

simulation-web-1 | Exception in thread "Thread-1" java.lang.NullPointerException

simulation-web-1 | at smc.runmodes.MachineLearning.testing2ThresholdGoals_1OptimizationGoal(MachineLearning.java:95)

simulation-web-1 | at smc.runmodes.MachineLearning.testing(MachineLearning.java:80)

simulation-web-1 | at smc.runmodes.MachineLearning.startVerification(MachineLearning.java:48)

simulation-web-1 | at smc.runmodes.SMCConnector.verify(SMCConnector.java:118)

simulation-web-1 | at mapek.FeedbackLoop.analysis(FeedbackLoop.java:181)

simulation-web-1 | at mapek.FeedbackLoop.monitor(FeedbackLoop.java:153)

simulation-web-1 | at mapek.FeedbackLoop.start(FeedbackLoop.java:91)

simulation-web-1 | at main.Main.lambda$start$0(Main.java:50)

simulation-web-1 | at java.lang.Thread.run(Thread.java:748)

@jvdd
Copy link
Owner

jvdd commented Nov 12, 2021

Hi, thanks for reaching out.

I see that you are talking about the DeltaIoT simulator code (containerized with docker).

The readme you are talking about is probably the one from this repo? (as in the DLASeR repo no simulator code is included)
If that is the case, I would suggest creating this issue on that repo?

From what I recall when toying around with the simulator, I would think there is something wrong with your local installation / setup of docker.

Hope this helps you!

@fkgl
Copy link
Author

fkgl commented Nov 12, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants