-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Failed to run bot base on docker instructions for windows #4808
Comments
pokecli.py: error: argument -a/--auth_service is required I am getting this too on mac, still trying to figure out why it can't find the auth file. work around: do -af configs/auth.json so it can find it. |
@kolinchang can you also copy&paste output of
Thanks |
it is now TIMEZONE (uppercase)
|
@kolinchang you are mentioning that you are in branch dev if you want to docker build "dev" branch docker build --build-arg BUILD_BRANCH=dev . or even: docker build --build-arg BUILD_BRANCH=f0623bd Otherwise the default is "master"
|
@kolinchang What's your status |
@th3w4y , @mjmadsen
@th3w4y looks like you are right, I'm on master even though I checked out dev It still looks like it cannot find config.json, also tried -af configs/config.json did not work. |
@kolinchang -af configs/auth.json as @leadboots5 suggested as for the docker part if you want to build dev in your case you should run |
@th3w4y just saw your comment, trying now! |
I'm running the following to start the bot, can you point out what I am doing wrong?
outputs:
|
docker build does not take comma separated build-args... correct command is: docker build --build-arg TIMEZONE=Australia/Melbourne --build-arg On Sun, Aug 28, 2016 at 1:44 AM, kolinchang [email protected]
|
@th3w4y noted |
@kolinchang you pasted the output of created and labels of the old build
|
you started with the old image... |
@th3w4y Just realised I have been doing that command wrong.
this one looks better to be honest. |
@kolinchang ok so the build is based on dev now... but your -v (the volumes seems wrong... - not sure) also maybe pass the -a google (or ptc) argument at the end of your run command |
@th3w4y I suspect that could the case. ran it without all the -v
|
@kolinchang maybe just use -v C:/Users/ko/git/PokemonGo-Bot/configs:/usr/src/app/configs (that should cover all the configs) |
@th3w4y , you are right! Looks like I'm on the right track. Normally I get this error when docker have no credential for access drive C:. Not today it looks like. this is still not working for me: I will play around for a while and keep you guys updated if I find anything. Thanks for your help! |
We should update installation.md for TIMEZONE update though. |
@kolinchang already created PR #4833 for this |
@th3w4y restarting computer perhaps just restarting docker fixed this. |
Expected Behavior
Docker builds successfully and volume mounts to the correct locations.
Actual Behavior
Base on installation.md:
running "docker build --build-arg timezone=Europe/London -t pokemongo-bot ." failed with error: One or more build-args [timezone] were not consumed, failing build.
running "docker run --name=bot1-pokego --rm -it -v$(pwd)/configs/config.json:/usr/src/app/configs/config.json -v $ (pwd)/web/:/usr/src/app/web/ pokemongo-bot" failed to start bot with following message:
2016-08-27 13:06:07,997 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-27 13:06:08,000 [ cli] [INFO] commit: not found
2016-08-27 13:06:08,001 [ cli] [INFO] Error: No /configs/config.json or specified config
usage: pokecli.py [-h] [-cf CONFIG] -a AUTH_SERVICE [-u USERNAME]
[-ws WEBSOCKET.SERVER_URL]
[-wss WEBSOCKET.START_EMBEDDED_SERVER]
[-wsr WEBSOCKET.REMOTE_CONTROL] [-p PASSWORD] [-l LOCATION]
[-lc LOCATION_CACHE] [--forts.spin FORTS.SPIN]
[-wmax WALK_MAX] [-wmin WALK_MIN] [-k GMAPKEY]
[-e SHOW_EVENTS] [-d DEBUG] [-t TEST] [-du DISTANCE_UNIT]
[-rt RECONNECTING_TIMEOUT] [-hr HEALTH_RECORD]
[-ac FORTS.AVOID_CIRCLES] [-mcs FORTS.MAX_CIRCLE_SIZE]
[-crf FORTS.CACHE_RECENT_FORTS]
[--map_object_cache_time MAP_OBJECT_CACHE_TIME]
[--logging_color LOGGING_COLOR]
[--heartbeat_threshold HEARTBEAT_THRESHOLD]
[--pokemon_bag.show_at_start POKEMON_BAG.SHOW_AT_START]
[--pokemon_bag.show_count POKEMON_BAG.SHOW_COUNT]
[--pokemon_bag.show_candies POKEMON_BAG.SHOW_CANDIES]
[--pokemon_bag.pokemon_info POKEMON_BAG.POKEMON_INFO]
[--alt_min ALT_MIN] [--alt_max ALT_MAX]
[--replicate_gps_xy_noise REPLICATE_GPS_XY_NOISE]
[--replicate_gps_z_noise REPLICATE_GPS_Z_NOISE]
[--gps_xy_noise_range GPS_XY_NOISE_RANGE]
[--gps_z_noise_range GPS_Z_NOISE_RANGE]
[--gps_default_altitude GPS_DEFAULT_ALTITUDE]
[--enable_social ENABLE_SOCIAL]
[--walker_limit_output WALKER_LIMIT_OUTPUT]
pokecli.py: error: argument -a/--auth_service is required
Your FULL config.json (remove your username, password, gmapkey and any other private info)
http://pastebin.com/raw/tz7bKug9
Output when issue occurred
Sending build context to Docker daemon 47.65 MB
Step 1 : FROM alpine
---> 4e38e38c8ce0
Step 2 : ARG BUILD_REPO=PokemonGoF/PokemonGo-Bot
---> Using cache
---> 6c966d32b7e0
Step 3 : ARG BUILD_BRANCH=master
---> Using cache
---> 282bd6abc530
Step 4 : ARG TIMEZONE=Etc/UTC
---> Using cache
---> 2eae6398a4c9
Step 5 : LABEL build_repo $BUILD_REPO build_branch $BUILD_BRANCH
---> Using cache
---> 70d001fcf895
Step 6 : WORKDIR /usr/src/app
---> Using cache
---> 72892d3fa603
Step 7 : VOLUME /usr/src/app/configs /usr/src/app/web
---> Using cache
---> dbd051c2ccf8
Step 8 : ADD https://raw.githubusercontent.com/$BUILD_REPO/$BUILD_BRANCH/requirements.txt .
Downloading 572 B
---> Using cache
---> 4212116238d2
Step 9 : RUN apk -U --no-cache add python py-pip && apk --no-cache add --virtual .build-dependencies python-dev gcc
make musl-dev git tzdata tar && cp -fa /usr/share/zoneinfo/$TIMEZONE /etc/localtime && echo $TIMEZONE > /etc/tim
ezone && ln -s locale.h /usr/include/xlocale.h && pip install --no-cache-dir -r requirements.txt && apk del
.build-dependencies && rm -rf /var/cache/apk/* /usr/include/xlocale.h && find / -name '.pyc' -o -name '.pyo' -
exec rm -f {} ;
---> Using cache
---> 9c71fb0bbcaf
Step 10 : ADD http://pgoapi.com/pgoencrypt.tar.gz /tmp/pgoencrypt.tar.gz
Downloading [==================================================>] 243.6 kB/243.6 kB
---> Using cache
---> 4713691dce02
Step 11 : RUN apk --no-cache add --virtual .pgoencrypt-dependencies gcc make musl-dev tar && cat /tmp/pgoencrypt.tar
.gz | tar xzf - -C /tmp && make -C /tmp/pgoencrypt/src && cp /tmp/pgoencrypt/src/libencrypt.so /usr/src/app/encr
ypt.so && apk del .pgoencrypt-dependencies && rm -rf /var/cache/apk/* /tmp/pgoencrypt /tmp/pgoencrypt.tar.gz
---> Using cache
---> 75e00d10895a
Step 12 : ADD https://github.com/$BUILD_REPO/archive/$BUILD_BRANCH.tar.gz /tmp
Downloading [==================================================>] 3.536 MB/3.536 MB
---> Using cache
---> 7fde22682ef4
Step 13 : RUN apk -U --no-cache add --virtual .tar-deps tar && cat /tmp/$BUILD_BRANCH.tar.gz | tar -zxf - --strip-co
mponents=1 -C /usr/src/app && apk del .tar-deps && rm /tmp/$BUILD_BRANCH.tar.gz
---> Using cache
---> a38321b2e980
Step 14 : ENTRYPOINT python pokecli.py
---> Using cache
---> 78325bbc780c
One or more build-args [timezone] were not consumed, failing build.
SKIPED BUILD ARGS AND RUN BOT
2016-08-27 13:06:07,997 [ cli] [INFO] PokemonGO Bot v1.0
2016-08-27 13:06:08,000 [ cli] [INFO] commit: not found
2016-08-27 13:06:08,001 [ cli] [INFO] Error: No /configs/config.json or specified config
usage: pokecli.py [-h] [-cf CONFIG] -a AUTH_SERVICE [-u USERNAME]
[-ws WEBSOCKET.SERVER_URL]
[-wss WEBSOCKET.START_EMBEDDED_SERVER]
[-wsr WEBSOCKET.REMOTE_CONTROL] [-p PASSWORD] [-l LOCATION]
[-lc LOCATION_CACHE] [--forts.spin FORTS.SPIN]
[-wmax WALK_MAX] [-wmin WALK_MIN] [-k GMAPKEY]
[-e SHOW_EVENTS] [-d DEBUG] [-t TEST] [-du DISTANCE_UNIT]
[-rt RECONNECTING_TIMEOUT] [-hr HEALTH_RECORD]
[-ac FORTS.AVOID_CIRCLES] [-mcs FORTS.MAX_CIRCLE_SIZE]
[-crf FORTS.CACHE_RECENT_FORTS]
[--map_object_cache_time MAP_OBJECT_CACHE_TIME]
[--logging_color LOGGING_COLOR]
[--heartbeat_threshold HEARTBEAT_THRESHOLD]
[--pokemon_bag.show_at_start POKEMON_BAG.SHOW_AT_START]
[--pokemon_bag.show_count POKEMON_BAG.SHOW_COUNT]
[--pokemon_bag.show_candies POKEMON_BAG.SHOW_CANDIES]
[--pokemon_bag.pokemon_info POKEMON_BAG.POKEMON_INFO]
[--alt_min ALT_MIN] [--alt_max ALT_MAX]
[--replicate_gps_xy_noise REPLICATE_GPS_XY_NOISE]
[--replicate_gps_z_noise REPLICATE_GPS_Z_NOISE]
[--gps_xy_noise_range GPS_XY_NOISE_RANGE]
[--gps_z_noise_range GPS_Z_NOISE_RANGE]
[--gps_default_altitude GPS_DEFAULT_ALTITUDE]
[--enable_social ENABLE_SOCIAL]
[--walker_limit_output WALKER_LIMIT_OUTPUT]
pokecli.py: error: argument -a/--auth_service is required
Steps to Reproduce
"docker build --build-arg timezone=Europe/London -t pokemongo-bot ."$(pwd)/configs/config.json:/usr/src/app/configs/config.json -v $ (pwd)/web/:/usr/src/app/web/ pokemongo-bot"
"docker run --name=bot1-pokego --rm -it -v
Other Information
OS: Windows 10
Branch: dev
Git Commit: f0623bd
Python Version: 2.7.12
Any other relevant files/configs (eg: path files)
The text was updated successfully, but these errors were encountered: