-
Notifications
You must be signed in to change notification settings - Fork 39
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 image crashes #40
Comments
@ram-g-athreya can help here |
Can you try to use a dummy config file |
Hello, I used the default Dummy-Configuration for the file and test since I do not have any actual keys yet and just to see if I can get the basic dbpedia chatbot to compile up and show something, ---------------configuration file " application.properties" in the src/main/resources" ------------- chatbot.baseUrl = http://localhost:8080 chatbot.fb.appSecret = secret cloudant.url = http://dbpedia-chatbot-couchdb tmdb.apiKey = tmdb-key wolfram.apiKey = wolfram-keyIt seemed to compile (at least in the Docker build) and then I started it up and went to the localhost address and got this message now: Whitelabel Error Page Wed Apr 29 12:21:03 UTC 2020
|
Hello, I installed Maven and tried the manual build with Java but also got the same crash even after adding in the dummy.configuration See attached file. |
Hi All, I just tried to compile things on a resh Debian 9 with Java 11 JDK and Maven installed via "apt" Added the "Dummy Configuration" to "src/main/resources/application.properties" In a non-docker environment, but have these errors now (See attached error file) Also installed npm from "apt" as well. lonnie@vmi208816:~/dbpedia-chatbot/chatbot$ java -version lonnie@vmi208816:~/dbpedia-chatbot/chatbot$ mvn -version lonnie@vmi208816:~/dbpedia-chatbot/chatbot$ npm -version |
One more question that I have here. Does the chatbot require Couchdb to be installed and setup as well? Thanks for any help that can be provided to get the base chatbot functioning as in the demo. All help is truly apprciated. |
Hi @Outstep, we are currently looking into it. Please give us some more time |
No worries and I was just updating what I found in my investigations.
Did not mean to push on this.
Thanks
…On Fri, May 1, 2020 at 2:40 PM Ricardo Usbeck ***@***.***> wrote:
Hi @Outstep <https://github.com/Outstep>, we are currently looking into
it. Please give us some more time
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF4TCHTLNVTEQVSIQXTMP43RPMJQNANCNFSM4MTG2RLQ>
.
|
Hi @Outstep Yes CouchDB is required for the chatbot and the corresponding configuration needs to be properly set up as part of the cloudant.* variables. Please give me some time to troubleshoot the issue you are facing. |
Hello,
Thanks for the information on this and originally I did not know if you
were researching it so I continued to try and troubleshoot the everything
myself.
Basically, I started with a fresh clean Debian 9 system and then installed
each needed component. I did not install CouchDB yet since I had used the
dummy configuration just to see if it would compile.
Sorry to seem as though I was pushing on it as now I know that you are
looking into more and will wait to see what you find.
It's a great project and I am looking to maybe use it as the core to build
on for something that I have in mind going forward.
Thanks again and have a great weekend.
…On Fri, May 1, 2020 at 3:12 PM Ram G Athreya ***@***.***> wrote:
One more question that I have here.
Does the chatbot require Couchdb to be installed and setup as well?
Thanks for any help that can be provided to get the base chatbot
functioning as in the demo.
All help is truly apprciated.
Hi @Outstep <https://github.com/Outstep>
Yes CouchDB is required for the chatbot and the corresponding
configuration needs to be properly set up as part of the cloudant.*
variables. Please give me some time to troubleshoot the issue you are
facing.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF4TCHTJDY5ONLEXAWUEOPTRPMNJHANCNFSM4MTG2RLQ>
.
|
Hi @Outstep Thanks for your interest in the project. It is quite modular but the DB is a hard requirement. As you can see here we try to connect to CouchDB on startup: https://github.com/dbpedia/chatbot/blob/master/src/main/java/chatbot/Application.java#L117-L119 Its been some time since I actually ran it locally so I need some time to brush up on the details. |
It looks like the error is related to Spring Boot and its property resolution. The error message indicates that it couldn't find the value for the property 'chatbot.slack.botToken' in your configuration. Here are a few steps to troubleshoot this issue: Check Configuration Files: Property Placeholder Resolution: Environment Variables: Docker Image Configuration: Here's an example of what your application.properties file might look like: properties application.propertieschatbot.slack.botToken=your_actual_bot_token_here properties application.propertieschatbot.slack.botToken=${CHATBOT_SLACK_BOT_TOKEN} |
Hello,
I was trying to build the Docker version of the chatbot but it crashes out:
chatbot$ docker run --tty --publish 8080:8080 --name "chatbot" chatbot
The error seems to be:
java.lang.IllegalArgumentException: Could not resolve placeholder 'chatbot.slack.botToken' in value "${chatbot.slack.botToken}"
But not sure what that means.
Can you please help?
Thanks in advance
UPDATE: I have now installed Java 8 JDK and Maven 3.3 as per the Docker setup so that I can run it natively outside of Docker on the system and have attached the error from that attempt lower in this message list.
The text was updated successfully, but these errors were encountered: