hok_env icon indicating copy to clipboard operation
hok_env copied to clipboard

start_learner.sh: line 61: cd: /aiarena/code/learner/: No such file or directory

Open super1603 opened this issue 5 months ago • 0 comments

I have hok gamecore on win10 & hok on docker. It have passed python3 test_env.py and output as follows: root@b044f42cec5a:/hok_env/hok/hok1v1/unit_test# python3 test_env.py host.docker.internal:23432 127.0.0.1 ======= test_send_action camp_config {'mode': '1v1', 'heroes': [[{'hero_id': 199}], [{'hero_id': 173}]]} common_ai [False, True] try to get first state... first state: dict_keys(['observation', 'legal_action', 'reward', 'done', 'model_output_name', 'game_id', 'player_id', 'frame_no', 'sub_action_mask', 'req_pb', 'sgame_id']) first frame: 0 ----------------------run step 0 ----------------------run step 100 ----------------------run step 200 ----------------------run step 300 ----------------------run step 400 ----------------------run step 500 ----------------------run step 600 ----------------------run step 700 ----------------------run step 800 ----------------------run step 900 ----------------------run step 1000 ----------------------run step 1100 ----------------------run step 1200 ----------------------run step 1300 ----------------------run step 1400 ----------------------run step 1500 ----------------------run step 1600 2024-09-04 17:14:42.512 | INFO | hok.common.log:info:85 - gameover at frameno 5046 of agent 0! [{'observation': array([1. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0.37979999, 1. , 0.10262582, 0.03333334, 0.26733333, 0.98768473, 0.27066666, 0.38749999, 0.19499999, 0. , 0.13583334, 0.12 , 0. , 0.25 , 0.07158333, 0.23524167, 0.23395 , 0.1766877 , 0.42173913, 0.75961536, 0.106 , 0.26666668, 0. , 0.244 , 0.21066667, 0.2 , 0. , 0. , 0. , 0.2520436 , 0.30450001, 0. , 0.39473686, 0.27125001, 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 1. , 0. , 0.37400001, 0. , 1. , 0. , 0.22891304, 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0.4005 , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0.5 , 0.5 , 1. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 0. , 0. , 0.5291 , 0.98712689, 0.27352297, 0.07222223, 0.32633334, 0.81583333, 0.40000001, 0.77499998, 0.28 , 0.41999999, 0.1925 , 0.16857143, 0.2 , 0. , 0.41258332, 0.36199167, 0.34843335, 0. , 0.58834785, 0.80769229, 0.30000001, 0.41666666, 0.44117647, 0. , 0.06666667, 0.16 , 0.7352941 , 0.27777779, 0. , 0.25022706, 0.0255 , 0. , 0.52631581, 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 0.486 , 1. , 0. , 0. , 0.00586957, 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 1. , 1. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 1. , 0. , 0.32257318, 0.92049998, 1. , 0.1851138 , 0.03853009, 0.02991667, 0.22437499, 0.13333334, 0.11428571, 0.30666667, 0. , 0. , 1. , 0. , 0. , 0. , 1. , 0. , 0.28457317, 1. , 0.97536665, 0.19876963, 0.02547118, 0.15166667, 0.36399999, 0.41666666, 0.22857143, 0.83999997, 0. , 0. , 1. , 0. , 0. , 0. , 1. , 0. , 0.30364636, 0.9400667 , 1. , 0.17766224, 0.02496673, 0.25758332, 1. , 0.20833333, 0.07142857, 0.44 , 0. , 0. , 1. , 0. , 0. , 0. , 1. , 0. , 0.31619513, 0.94333333, 1. , 0.18508348, 0.03150688, 0.16483334, 1. , 0.13333334, 0.11428571, 0.30666667, 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 1. , 1. , 0.74170732, 1. , 1. , 0.62991703, 0.45356503, 0.77777779, 1. , 0.77777779, 0.63492066, 0. , 0.77692306, 1. , 0. , 1. , 0. , 0. , 0. , 1. , 0.63749999, 1. , 1. , 0.52580166, 0.34948027, 0.55555558, 1. , 0.55555558, 0.76190478, 1. , 0.63846153, 0. , 0. , 1. , 0. , 0. ]), 'legal_action': array([0., 1., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 0., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0.]), 'reward': (0.0, 0.004926085472106934, -551.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.004571437835693359, -3.325162649154663), 'done': True, 'model_output_name': (b'legal_softmax_0', b'legal_softmax_1', b'legal_softmax_2', b'legal_softmax_3', b'legal_softmax_4', b'legal_softmax_target', b'sample_0', b'sample_1', b'sample_2', b'sample_3', b'sample_4', b'sample_target', b'fc2_value'), 'game_id': b'0.0.0.0_2045_0_20240904171432_148', 'player_id': 8, 'frame_no': 5046, 'sub_action_mask': {0: array([1., 0., 0., 0., 0., 0.]), 1: array([1., 0., 0., 0., 0., 0.]), 2: array([1., 1., 1., 0., 0., 0.]), 3: array([1., 0., 0., 0., 0., 1.]), 4: array([1., 0., 0., 1., 1., 1.]), 5: array([1., 0., 0., 0., 0., 0.]), 6: array([1., 0., 0., 1., 1., 1.]), 7: array([1., 0., 0., 0., 0., 0.]), 8: array([1., 0., 0., 0., 0., 0.]), 9: array([1., 0., 0., 0., 0., 0.]), 10: array([1., 0., 0., 0., 0., 0.]), 11: array([1., 0., 0., 0., 0., 1.])}, 'req_pb': <hok.hok1v1.lib.interface.AIFrameState object at 0x7f0c2c529f30>, 'sgame_id': '0.0.0.0_2045_0_20240904171432_148'}, None] While it goes wrong when I continue to run sh start_learner.sh. The error is as follows: root@b044f42cec5a:/aiarena/scripts/learner# sh start_learner.sh [2024-09-04 18:18:55] stop learner kill: (670): No such process start.sh: line 33: 221 Killed nohup ./modelpool_proxy -fileSavePath=${MODEL_POOL_FILE_SAVE_PATH} > ${LOG_DIR}/modelpool_proxy.log 2>&1 [2024-09-04 18:18:55] parse ip list 127.0.0.1 ['127.0.0.1 root 36000 1'] [2024-09-04 18:18:55] start model_pool kill: (691): No such process [2024-09-04 18:18:55] start monitor [2024-09-04 18:18:55] Start [2024-09-04 18:18:55] Complete! start.sh: line 33: 220 Killed nohup ./modelpool -conf=../config/trpc_go.yaml > /dev/null 2>&1 [2024-09-04 18:18:55] node_list: 127.0.0.1:1 [2024-09-04 18:18:55] node_num: 1 [2024-09-04 18:18:55] learner_num: 1 [2024-09-04 18:18:55] proc_per_node: 1 [2024-09-04 18:18:55] NET_CARD_NAME: eth0 sed: can't read /aiarena/code/learner//config/common.conf: No such file or directory [2024-09-04 18:18:55] mem_pool_list: [35200] grep: /aiarena/code/learner/config/common.conf: No such file or directory [2024-09-04 18:18:55] start learner (mpirun) start_learner.sh: line 61: cd: /aiarena/code/learner/: No such file or directory

super1603 avatar Sep 04 '24 10:09 super1603