作者小头像 Lv.1
3 成长值

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

DevOps、大数据、人工智能
个人勋章
TA还没获得勋章~
成长雷达
0
3
0
0
0

个人资料

个人介绍

这个人很懒,什么都没有留下

感兴趣或擅长的领域

DevOps、大数据、人工智能

达成规则

发布时间 2020/06/11 14:11:13 最后回复 Yongqiang 2020/06/11 21:55:12 版块 AI开发平台ModelArts
2319 8 0
发布时间 2020/06/11 14:11:13 最后回复 Yongqiang 2020/06/11 21:55:12 版块 AI开发平台ModelArts
2319 8 0
他的回复:
刚才我也遇到这个问题,部署的时候nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:12020-06-11 09:43:23.135913: I tensorflow_serving/model_servers/main.cc:153] Building single TensorFlow model file config: model_name: serve model_base_path: /home/mind/model/2020-06-11 09:43:23.136134: I tensorflow_serving/model_servers/server_core.cc:444] Adding/updating models.2020-06-11 09:43:23.136171: I tensorflow_serving/model_servers/server_core.cc:499] (Re-)adding model: serve2020-06-11 09:43:23.238602: I tensorflow_serving/core/basic_manager.cc:716] Successfully reserved resources to load servable {name: serve version: 1}2020-06-11 09:43:23.238677: I tensorflow_serving/core/loader_harness.cc:66] Approving load for servable version {name: serve version: 1}2020-06-11 09:43:23.238700: I tensorflow_serving/core/loader_harness.cc:74] Loading servable version {name: serve version: 1}2020-06-11 09:43:23.238785: E tensorflow_serving/util/retrier.cc:37] Loading servable: {name: serve version: 1} failed: Not found: Specified file path does not appear to contain a:- Session bundle (should have a file called `export.meta`)- or, SavedModel bundle (should have a file called `saved_model.pb`)Specified file path: /home/mind/model/1[2020-06-11 09:43:23 +0000] [31] [INFO] Starting gunicorn 19.9.0[2020-06-11 09:43:23 +0000] [31] [INFO] Listening at: http://127.0.0.1:8080 (31)[2020-06-11 09:43:23 +0000] [31] [INFO] Using worker: sync[2020-06-11 09:43:23 +0000] [68] [INFO] Booting worker with pid: 682020-06-11 09:43:23 UTC [MainThread ] - /home/mind/app.py[line:104] - INFO: args: Namespace(model_name='serve', model_path='/home/mind/model/1', service_file='/home/mind/model/1/customize-service.py', tf_server_name='127.0.0.1')Traceback (most recent call last):File "/home/mind/model_service/model_service.py", line 167, in load_servicespec.loader.exec_module(module)File "", line 678, in exec_moduleFile "", line 219, in _call_with_frames_removedFile "/home/mind/model/1/customize-service.py", line 4, inimport core.utils as utilsFile "/home/mind/model/1/core/utils.py", line 1, inimport cv2File "/home/modelarts/.local/lib/python3.6/site-packages/cv2/__init__.py", line 3, infrom .cv2 import *ImportError: libSM.so.6: cannot open shared object file: No such file or directory[2020-06-11 09:43:29 +0000] [68] [ERROR] Exception in worker processTraceback (most recent call last):File "/home/mind/model_service/model_service.py", line 167, in load_servicespec.loader.exec_module(module)File "", line 678, in exec_moduleFile "", line 219, in _call_with_frames_removedFile "/home/mind/model/1/customize-service.py", line 4, inimport core.utils as utilsFile "/home/mind/model/1/core/utils.py", line 1, inimport cv2File "/home/modelarts/.local/lib/python3.6/site-packages/cv2/__init__.py", line 3, infrom .cv2 import *ImportError: libSM.so.6: cannot open shared object file: No such file or directoryDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/modelarts/.local/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_workerworker.init_process()File "/home/modelarts/.local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_processself.load_wsgi()File "/home/modelarts/.local/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgiself.wsgi = self.app.wsgi()File "/home/modelarts/.local/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgiself.callable = self.load()File "/home/modelarts/.local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in loadreturn self.load_wsgiapp()File "/home/modelarts/.local/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiappreturn util.import_app(self.app_uri)File "/home/modelarts/.local/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app__import__(module)File "/home/mind/app.py", line 116, inmodule = load_service(model_service_file) if model_service_file else tfserving_vision_serviceFile "/home/mind/model_service/model_service.py", line 176, in load_serviceraise Exception('Incorrect or missing service file: ' + path)Exception: Incorrect or missing service file: /home/mind/model/1/customize-service.py[2020-06-11 09:43:29 +0000] [68] [INFO] Worker exiting (pid: 68)[2020-06-11 09:43:29 +0000] [31] [INFO] Shutting down: Master[2020-06-11 09:43:29 +0000] [31] [INFO] Reason: Worker failed to boot.nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:12020-06-11 09:43:35.082251: I tensorflow_serving/model_servers/main.cc:153] Building single TensorFlow model file config: model_name: serve model_base_path: /home/mind/model/2020-06-11 09:43:35.082478: I tensorflow_serving/model_servers/server_core.cc:444] Adding/updating models.2020-06-11 09:43:35.082514: I tensorflow_serving/model_servers/server_core.cc:499] (Re-)adding model: serve2020-06-11 09:43:35.192426: I tensorflow_serving/core/basic_manager.cc:716] Successfully reserved resources to load servable {name: serve version: 1}2020-06-11 09:43:35.192497: I tensorflow_serving/core/loader_harness.cc:66] Approving load for servable version {name: serve version: 1}2020-06-11 09:43:35.192518: I tensorflow_serving/core/loader_harness.cc:74] Loading servable version {name: serve version: 1}2020-06-11 09:43:35.192598: E tensorflow_serving/util/retrier.cc:37] Loading servable: {name: serve version: 1} failed: Not found: Specified file path does not appear to contain a:- Session bundle (should have a file called `export.meta`)- or, SavedModel bundle (should have a file called `saved_model.pb`)Specified file path: /home/mind/model/1[2020-06-11 09:43:35 +0000] [31] [INFO] Starting gunicorn 19.9.0[2020-06-11 09:43:35 +0000] [31] [INFO] Listening at: http://127.0.0.1:8080 (31)[2020-06-11 09:43:35 +0000] [31] [INFO] Using worker: sync[2020-06-11 09:43:35 +0000] [68] [INFO] Booting worker with pid: 682020-06-11 09:43:35 UTC [MainThread ] - /home/mind/app.py[line:104] - INFO: args: Namespace(model_name='serve', model_path='/home/mind/model/1', service_file='/home/mind/model/1/customize-service.py', tf_server_name='127.0.0.1')Traceback (most recent call last):File "/home/mind/model_service/model_service.py", line 167, in load_servicespec.loader.exec_module(module)File "", line 678, in exec_moduleFile "", line 219, in _call_with_frames_removedFile "/home/mind/model/1/customize-service.py", line 4, inimport core.utils as utilsFile "/home/mind/model/1/core/utils.py", line 1, inimport cv2File "/home/modelarts/.local/lib/python3.6/site-packages/cv2/__init__.py", line 3, infrom .cv2 import *ImportError: libSM.so.6: cannot open shared object file: No such file or directory[2020-06-11 09:43:40 +0000] [68] [ERROR] Exception in worker processTraceback (most recent call last):File "/home/mind/model_service/model_service.py", line 167, in load_servicespec.loader.exec_module(module)