PokemonGoBot icon indicating copy to clipboard operation
PokemonGoBot copied to clipboard

Stuck on 83% when I run it and the bot doesnt actually start.

Open dyze1114 opened this issue 10 years ago • 9 comments

I've been running it for a day now with no issues, but I stopped it, edited the config file, try to rerun the bot by coding in ./gradlew run and then this happened:

Carolyns-iMac:PokemonGoBot daniel$ ./gradlew run
:compileKotlin UP-TO-DATE
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:createProperties
:classes
:run
                                  ,'\
    _.----.        ____         ,'  _\   ___    ___     ____        ;-.               ,
_,-'       `.     |    |  /`.   \,-'    |   \  /   |   |    \  |`.   \ '.           .'/
\      __    \    '-.  | /   `.  ___    |    \/    |   '-.   \ |  |   \  \ .---. .-' /
 \.    \ \   |  __  |  |/    ,','_  `.  |          | __  |    \|  |    '. '     `\_.'
   \    \/   /,' _`.|      ,' / / / /   |          ,' _`.|     |  |      |(),()  |     ,
    \     ,-'/  /   \    ,'   | \/ / ,`.|         /  /   \  |     |      (  __   /   .' \
     \    \ |   \_/  |   `-.  \    `'  /|  |    ||   \_/  | |\    |     .''.___.'--,/\_,|
      \    \ \      /       `-.`.___,-' |  |\  /| \      /  | |   |    {  /     \   }   |
       \    \ `.__,'|  |`-._    `|      |__| \/ |  `.__,'|  | |   |     '.\     /_.'    /
        \_.-'       |__|    `-._ |              '-.|     '-.| |   |      |'-.-',  `; _.'
                                `'                            '-._|      |  |  |   |`
                                                                         `""`""`"""`
> Building 83% > :run

It's been 20 minutes and it hasn't done anything. Can someone help?

dyze1114 avatar Aug 10 '16 22:08 dyze1114

Unrelated to the 83%, that number is 100% correct and not a bug (search).

No idea why it wouldn't log more. Can you try running the precompiled jar?

jabbink avatar Aug 10 '16 23:08 jabbink

Can you try running the precompiled jar?

I'm not sure what that means, I'm not too good with this stuff. I barely got through the tutorial haha

Edit: I tried to rebuild it and this happened

`:compileKotlin UP-TO-DATE :compileJava UP-TO-DATE :processResources UP-TO-DATE :createProperties :classes :jar :findMainClass :startScripts :distTar :distZip :bootRepackage :assemble :compileTestKotlin :compileTestJava UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :test

ink.abb.pogo.scraper.TestSettings > testDefaultSettings FAILED java.io.FileNotFoundException at TestSettings.kt:25

ink.abb.pogo.scraper.TestSettings > testTemplateKeys FAILED java.io.FileNotFoundException at TestSettings.kt:73

2 tests completed, 2 failed :test FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':test'.

    There were failing tests. See the report at: file:///Users/daniel/PokemonGoBot/build/reports/tests/index.html

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 17.976 secs `

dyze1114 avatar Aug 10 '16 23:08 dyze1114

I noticed this behaviour of not moving on/logging more details as well, but it was due to port 8080 being in use already. Hope this helps.

BKer avatar Aug 11 '16 07:08 BKer

@dyze1114 does it happen when you restart the bot. Happens to me sometime as well ... try killall java in the console.

pet90210 avatar Aug 11 '16 10:08 pet90210

Also when the build fails try to disable the test ./gradlew build -x test

langerhans avatar Aug 11 '16 19:08 langerhans

Figured out how to bypass this problem!

So,

  1. Use ./gradlew build -x test to bypass the 'Test failed' error
  2. Run normally using ./gradlew run
  3. If you face this problem, type killall java. However, this somehow doesn't work. So, open Activity Monitor (or its equivalent), search for 'java', and force quit all of them. I had 4 'java' instances which I needed to quit even after using killall java.
  4. Now you can run it fine.

yashendra2797 avatar Aug 15 '16 00:08 yashendra2797

Skipping Tests however is not good! Something vor someone messed up...

alexlautenschlager avatar Aug 15 '16 02:08 alexlautenschlager

@AlexBoulyga True. But if you're compiling from the git, you know the risks.

yashendra2797 avatar Aug 15 '16 19:08 yashendra2797

try in terminal killall -9 java

chongivan avatar Sep 02 '16 06:09 chongivan