Closed smishy05 closed 4 years ago
Hi, This looks like a quota issue with your DialogFlow agent. I guess your bot contains quite a lot of intents, right?
You can re-run your application, Xatkit won't redeploy the intents that are already deployed in DialogFlow, so you should be fine. Let me know if this is not the case.
Thanks a lot for your reply.
Yes, I do have lots of intents.
I tried again but I am getting the same error. Hence, I tried to make xatkit.dialogflow.clean_on_startup
= false
. But then I got the error - 07:07:27.147 [pool-3-thread-1] ERROR - Cannot register the intent CondMultiply, the intent already exists
. CondMultiply
is an intent. I am getting this for many other intents.
Indeed you need to set xatkit.dialogflow.clean_on_startup = false
for the (quick) fix I mention above. As you noticed Xatkit will log an error for every intent that is already registered, but it should move to the unregistered intents at some point.
Can you provide the error log you get with this configuration?
Thanks for your reply. The bot is running now. But I am still getting these errors.
Xatkit classpath:
/home/shailesh1998/xatkit/build/examples/WeatherBot/lib/xatkit-rest-runtime-2.0.0-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/examples/community/Twitter/CanYouTweet/lib/xatkit-twitter-runtime-1.0.1-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/examples/GitHubBots/GithubBot/lib/xatkit-github-runtime-2.1.1-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-github-platform/xatkit-github-runtime-3.0.1-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-chat-platform/xatkit-chat-runtime-3.0.1-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-slack-platform/xatkit-slack-runtime-3.0.1-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-log-platform/xatkit-log-runtime-3.0.1-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-core-platform/xatkit-core-runtime-3.0.1-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-react-platform/xatkit-react-runtime-4.0.1-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-rest-platform/xatkit-rest-runtime-2.0.0-SNAPSHOT.jar
/home/shailesh1998/xatkit/build/bin/xatkit-nodep-jar-with-dependencies.jar
java -Dfile.encoding=UTF-8 -cp '/home/shailesh1998/xatkit/build/examples/WeatherBot/lib/xatkit-rest-runtime-2.0.0-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/examples/community/Twitter/CanYouTweet/lib/xatkit-twitter-runtime-1.0.1-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/examples/GitHubBots/GithubBot/lib/xatkit-github-runtime-2.1.1-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-github-platform/xatkit-github-runtime-3.0.1-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-chat-platform/xatkit-chat-runtime-3.0.1-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-slack-platform/xatkit-slack-runtime-3.0.1-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-log-platform/xatkit-log-runtime-3.0.1-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-core-platform/xatkit-core-runtime-3.0.1-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-react-platform/xatkit-react-runtime-4.0.1-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/plugins/platforms/xatkit-rest-platform/xatkit-rest-runtime-2.0.0-SNAPSHOT.jar:/home/shailesh1998/xatkit/build/bin/xatkit-nodep-jar-with-dependencies.jar' com.xatkit.Xatkit '../projects/SC_MDE/SC_MDE.properties'
15:46:57.581 [pool-3-thread-1] INFO - Starting Xatkit with the configuration file ../projects/SC_MDE/SC_MDE.properties
15:46:59.083 [pool-3-thread-1] INFO - Loading Xatkit core libraries
15:46:59.178 [pool-3-thread-1] INFO - CoreLibrary loaded
15:46:59.178 [pool-3-thread-1] INFO - Loading Xatkit core platforms
15:46:59.409 [pool-3-thread-1] INFO - GithubPlatform loaded
15:46:59.412 [pool-3-thread-1] INFO - ChatPlatform loaded
15:46:59.419 [pool-3-thread-1] INFO - SlackPlatform loaded
15:46:59.421 [pool-3-thread-1] INFO - LogPlatform loaded
15:46:59.424 [pool-3-thread-1] INFO - CorePlatform loaded
15:46:59.428 [pool-3-thread-1] INFO - ReactPlatform loaded
15:46:59.437 [pool-3-thread-1] INFO - RestPlatform loaded
15:46:59.437 [pool-3-thread-1] INFO - Loading Xatkit custom libraries
15:46:59.448 [pool-3-thread-1] INFO - SC_MDE loaded
15:46:59.450 [pool-3-thread-1] INFO - Loading Xatkit custom platforms
15:46:59.582 [main] WARN org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory - --- xtext.common.types ---------------------------------------------------
15:46:59.583 [main] WARN org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory - ASM library is not available. Falling back to java.lang.reflect API.
15:46:59.583 [main] WARN org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory - Please note that no information about compile time constants is available.
15:46:59.583 [main] WARN org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory - It's recommended to use org.objectweb.asm 5.0.1 or better (Maven group id: org.ow2.asm).
15:46:59.583 [main] WARN org.eclipse.xtext.common.types.access.impl.DeclaredTypeFactory - --------------------------------------------------------------------------
15:47:00.522 [pool-3-thread-1] INFO - Starting intent recognition monitoring
15:47:00.677 [pool-3-thread-1] INFO - Registered REST handler at URI /analytics/monitoring (method=GET)
15:47:00.677 [pool-3-thread-1] INFO - Registered REST handler at URI /analytics/monitoring/session (method=GET)
15:47:00.677 [pool-3-thread-1] INFO - Registered REST handler at URI /analytics/monitoring/unmatched (method=GET)
15:47:00.677 [pool-3-thread-1] INFO - Registered REST handler at URI /analytics/monitoring/matched (method=GET)
15:47:00.678 [pool-3-thread-1] INFO - Registered REST handler at URI /analytics/monitoring/sessions/stats (method=GET)
15:47:00.683 [pool-3-thread-1] INFO - Starting DialogFlow Client
15:47:00.692 [pool-3-thread-1] INFO - Loading Google Credentials file /home/shailesh1998/xatkit/build/projects/SC_MDE_JSON/sc-mde-nymmpx-a9a2e4554f0e.json
15:47:01.186 [pool-3-thread-1] INFO - Loading Intents previously registered in the DialogFlow project sc-mde-nymmpx
15:47:03.148 [pool-3-thread-1] INFO - Loading Entities previously registered in the DialogFlow project sc-mde-nymmpx
15:47:04.572 [pool-3-thread-1] INFO - Loading RuntimePlatform for ReactPlatform
15:47:04.573 [pool-3-thread-1] INFO - Loading class com.xatkit.plugins.react.platform.ReactPlatform
15:47:04.575 [pool-3-thread-1] INFO - Constructing ReactPlatform with parameters (com.xatkit.core.XatkitCore@389fad5b,org.apache.commons.configuration2.PropertiesConfiguration@5d72da0b)
15:47:04.710 [main] INFO com.corundumstudio.socketio.SocketIOServer - Session store / pubsub factory used: MemoryStoreFactory (local session store only)
15:47:04.798 [pool-3-thread-1] INFO - Registered REST handler at URI /admin (method=GET)
15:47:04.798 [pool-3-thread-1] INFO - Registered REST handler at URI /admin/css/xatkit.css (method=GET)
15:47:04.798 [pool-3-thread-1] INFO - Registered REST handler at URI /admin/js/xatkit.js (method=GET)
15:47:04.799 [pool-3-thread-1] INFO - Starting ReactIntentProvider
15:47:04.799 [pool-3-thread-1] INFO - Loading class com.xatkit.plugins.react.platform.io.ReactIntentProvider
15:47:04.799 [nioEventLoopGroup-2-1] INFO com.corundumstudio.socketio.SocketIOServer - SocketIO server started at port: 5001
15:47:04.800 [pool-3-thread-1] INFO - Constructing ReactIntentProvider with parameters (*ReactPlatform,org.apache.commons.configuration2.PropertiesConfiguration@5d72da0b)
15:47:04.803 [pool-3-thread-1] INFO - Starting RuntimeEventProvider ReactIntentProvider
15:47:04.803 [pool-3-thread-1] INFO - Registering execution rule events
15:47:04.815 [pool-3-thread-1] ERROR - Cannot register the intent AddRHS2, the intent already exists
15:47:04.816 [pool-3-thread-1] ERROR - Cannot register the intent CondDivRHS2, the intent already exists
15:47:04.816 [pool-3-thread-1] ERROR - Cannot register the intent StatementForCondition, the intent already exists
15:47:04.816 [pool-3-thread-1] ERROR - Cannot register the intent CondMultiply, the intent already exists
15:47:04.816 [pool-3-thread-1] ERROR - Cannot register the intent DivRHS2, the intent already exists
15:47:04.816 [pool-3-thread-1] ERROR - Cannot register the intent CondDecVar, the intent already exists
15:47:04.816 [pool-3-thread-1] ERROR - Cannot register the intent IncVar, the intent already exists
15:47:04.817 [pool-3-thread-1] ERROR - Cannot register the intent CondAddRHS2, the intent already exists
15:47:04.817 [pool-3-thread-1] ERROR - Cannot register the intent noContract, the intent already exists
15:47:04.817 [pool-3-thread-1] ERROR - Cannot register the intent Function, the intent already exists
15:47:04.817 [pool-3-thread-1] ERROR - Cannot register the intent CondIncVar, the intent already exists
15:47:04.817 [pool-3-thread-1] ERROR - Cannot register the intent CondDivide, the intent already exists
15:47:04.817 [pool-3-thread-1] ERROR - Cannot register the intent Done, the intent already exists
15:47:04.817 [pool-3-thread-1] ERROR - Cannot register the intent CondDecrease, the intent already exists
15:47:04.818 [pool-3-thread-1] ERROR - Cannot register the intent CondDecVal, the intent already exists
15:47:04.818 [pool-3-thread-1] ERROR - Cannot register the intent AddLHS, the intent already exists
15:47:04.818 [pool-3-thread-1] ERROR - Cannot register the intent createContract, the intent already exists
15:47:04.818 [pool-3-thread-1] ERROR - Cannot register the intent Subtract, the intent already exists
15:47:04.818 [pool-3-thread-1] ERROR - Cannot register the intent CondMulLHS, the intent already exists
15:47:04.818 [pool-3-thread-1] ERROR - Cannot register the intent SomethingElse, the intent already exists
15:47:04.819 [pool-3-thread-1] ERROR - Cannot register the intent DecVar, the intent already exists
15:47:04.819 [pool-3-thread-1] ERROR - Cannot register the intent CondMulRHS1, the intent already exists
15:47:04.819 [pool-3-thread-1] ERROR - Cannot register the intent Condition, the intent already exists
15:47:04.819 [pool-3-thread-1] ERROR - Cannot register the intent AsLHS, the intent already exists
15:47:04.819 [pool-3-thread-1] ERROR - Cannot register the intent PostCondition, the intent already exists
15:47:04.820 [pool-3-thread-1] ERROR - Cannot register the intent SubRHS1, the intent already exists
15:47:04.820 [pool-3-thread-1] ERROR - Cannot register the intent CondIncVal, the intent already exists
15:47:04.820 [pool-3-thread-1] ERROR - Cannot register the intent CondSomethingElse, the intent already exists
15:47:04.820 [pool-3-thread-1] ERROR - Cannot register the intent Solidity, the intent already exists
15:47:04.820 [pool-3-thread-1] ERROR - Cannot register the intent PName, the intent already exists
15:47:04.820 [pool-3-thread-1] ERROR - Cannot register the intent FName, the intent already exists
15:47:04.820 [pool-3-thread-1] ERROR - Cannot register the intent DecVal, the intent already exists
15:47:04.821 [pool-3-thread-1] ERROR - Cannot register the intent CondAdd, the intent already exists
15:47:04.821 [pool-3-thread-1] ERROR - Cannot register the intent MA, the intent already exists
15:47:04.821 [pool-3-thread-1] ERROR - Cannot register the intent DivLHS, the intent already exists
15:47:05.481 [pool-3-thread-1] ERROR - Cannot register the intent Function_Condition, the intent already exists
15:47:05.481 [pool-3-thread-1] ERROR - Cannot register the intent Increase, the intent already exists
15:47:05.482 [pool-3-thread-1] ERROR - Cannot register the intent CondAssign, the intent already exists
15:47:05.482 [pool-3-thread-1] ERROR - Cannot register the intent CondSubRHS2, the intent already exists
15:47:05.482 [pool-3-thread-1] ERROR - Cannot register the intent CondDivLHS, the intent already exists
15:47:05.482 [pool-3-thread-1] ERROR - Cannot register the intent SubLHS, the intent already exists
15:47:05.483 [pool-3-thread-1] ERROR - Cannot register the intent Decrease, the intent already exists
15:47:06.090 [pool-3-thread-1] ERROR - Cannot register the intent Function_Statements, the intent already exists
15:47:06.091 [pool-3-thread-1] ERROR - Cannot register the intent CondAsRHS, the intent already exists
15:47:06.092 [pool-3-thread-1] ERROR - Cannot register the intent HF, the intent already exists
15:47:06.092 [pool-3-thread-1] ERROR - Cannot register the intent MulRHS2, the intent already exists
15:47:06.093 [pool-3-thread-1] ERROR - Cannot register the intent CondSubRHS1, the intent already exists
15:47:06.093 [pool-3-thread-1] ERROR - Cannot register the intent CondIncrease, the intent already exists
15:47:06.094 [pool-3-thread-1] ERROR - Cannot register the intent CondSubLHS, the intent already exists
15:47:06.094 [pool-3-thread-1] ERROR - Cannot register the intent CondMulRHS2, the intent already exists
15:47:06.729 [pool-3-thread-1] ERROR - Cannot register the intent Arg_Type, the intent already exists
15:47:07.205 [pool-3-thread-1] ERROR - Cannot register the intent Function_Args, the intent already exists
15:47:07.206 [pool-3-thread-1] ERROR - Cannot register the intent CondSEInput, the intent already exists
15:47:07.207 [pool-3-thread-1] ERROR - Cannot register the intent SCName, the intent already exists
15:47:07.207 [pool-3-thread-1] ERROR - Cannot register the intent Assign, the intent already exists
15:47:07.208 [pool-3-thread-1] ERROR - Cannot register the intent AddRHS1, the intent already exists
15:47:07.208 [pool-3-thread-1] ERROR - Cannot register the intent AsRHS, the intent already exists
15:47:07.208 [pool-3-thread-1] ERROR - Cannot register the intent PreCondition, the intent already exists
15:47:08.034 [pool-3-thread-1] ERROR - Cannot register the intent Function_Done, the intent already exists
15:47:08.035 [pool-3-thread-1] ERROR - Cannot register the intent CondAsLHS, the intent already exists
15:47:08.551 [pool-3-thread-1] ERROR - Cannot register the intent Asset_Var, the intent already exists
15:47:08.552 [pool-3-thread-1] ERROR - Cannot register the intent DivRHS1, the intent already exists
15:47:08.552 [pool-3-thread-1] ERROR - Cannot register the intent CondAddLHS, the intent already exists
15:47:08.553 [pool-3-thread-1] ERROR - Cannot register the intent SubRHS2, the intent already exists
15:47:08.553 [pool-3-thread-1] ERROR - Cannot register the intent CondSubtract, the intent already exists
15:47:08.553 [pool-3-thread-1] ERROR - Cannot register the intent AName, the intent already exists
15:47:08.554 [pool-3-thread-1] ERROR - Cannot register the intent Add, the intent already exists
15:47:08.554 [pool-3-thread-1] ERROR - Cannot register the intent AVarType, the intent already exists
15:47:08.554 [pool-3-thread-1] ERROR - Cannot register the intent CondAddRHS1, the intent already exists
15:47:08.555 [pool-3-thread-1] ERROR - Cannot register the intent Divide, the intent already exists
15:47:08.555 [pool-3-thread-1] ERROR - Cannot register the intent Asset, the intent already exists
15:47:08.556 [pool-3-thread-1] ERROR - Cannot register the intent Multiply, the intent already exists
15:47:08.556 [pool-3-thread-1] ERROR - Cannot register the intent MulRHS1, the intent already exists
15:47:08.556 [pool-3-thread-1] ERROR - Cannot register the intent MulLHS, the intent already exists
15:47:08.557 [pool-3-thread-1] ERROR - Cannot register the intent HC, the intent already exists
15:47:08.557 [pool-3-thread-1] ERROR - Cannot register the intent ConditionDone, the intent already exists
15:47:08.557 [pool-3-thread-1] ERROR - Cannot register the intent AVarName, the intent already exists
15:47:09.366 [pool-3-thread-1] ERROR - Cannot register the intent Arg_Name, the intent already exists
15:47:09.367 [pool-3-thread-1] ERROR - Cannot register the intent CondDivRHS1, the intent already exists
15:47:09.368 [pool-3-thread-1] ERROR - Cannot register the intent Greet, the intent already exists
15:47:09.369 [pool-3-thread-1] ERROR - Cannot register the intent SEInput, the intent already exists
15:47:09.370 [pool-3-thread-1] ERROR - Cannot register the intent IncVal, the intent already exists
15:47:09.370 [pool-3-thread-1] ERROR - Cannot register the intent Participant, the intent already exists
15:47:09.979 [pool-3-thread-1] ERROR - Cannot register the intent Asset_Done, the intent already exists
15:47:09.984 [pool-3-thread-1] INFO - Loading class com.xatkit.plugins.react.platform.action.PostMessage
15:47:09.986 [pool-3-thread-1] INFO - Loading class com.xatkit.plugins.react.platform.action.Reply
15:47:09.987 [pool-3-thread-1] INFO - Loading class com.xatkit.plugins.react.platform.action.ItemizeList
15:47:09.988 [pool-3-thread-1] INFO - Loading class com.xatkit.plugins.react.platform.action.EnumerateList
15:47:09.989 [pool-3-thread-1] INFO - Loading class com.xatkit.plugins.react.platform.action.ReplyFileMessage
15:47:09.990 [pool-3-thread-1] INFO - Loading class com.xatkit.plugins.react.platform.action.ToggleDarkMode
15:47:09.991 [pool-3-thread-1] INFO - Loading class com.xatkit.plugins.react.platform.action.Wait
15:47:10.011 [pool-3-thread-1] INFO - Starting XatkitServer
15:47:10.014 [pool-3-thread-1] INFO - XatkitServer started, listening on 0.0.0.0/0.0.0.0:5,000
15:47:10.014 [pool-3-thread-1] INFO - Xatkit bot started
Eager to hear from you!
Glad your bot is running now!
Indeed the logs are misleading, we should probably log it as a warning, especially when clean_on_startup = false
. I have opened an issue for it: https://github.com/xatkit-bot-platform/xatkit-runtime/issues/300
I have connected my bot to DialogFlow. While trying to run the bot, I am getting this error
What should I do?
Thanks in advance