[ 
https://issues.apache.org/jira/browse/MARVIN-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yifei Zhang updated MARVIN-69:
------------------------------
    Description: 
 

It work perfectly when running directly via engine-httpserver local,  but it 
breaks when I when it on docker. 
Printscreen in attachment.

  

 

(cba3-engine-env) guilherme@BRSPOBITANL0954:~/marvin/cba3-engine$ make 
docker-run
sudo docker run --name=marvin-cba3-0.00.01 --mount 
type=bind,source=/home/guilherme/marvin/data,destination=/marvin-data -p 
8000:8000 docker.registry.io/cba3:0.00.01
Starting server ...
Engine file engine.params loaded!
Engine file engine.metadata loaded!
Traceback (most recent call last):
 File "/opt/marvin/.virtualenvs/marvin-engine-env/bin/marvin", line 79, in 
<module>
 cli()
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 764, in __call__
 return self.main(*args, **kwargs)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 717, in main
 rv = self.invoke(ctx)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 1137, in invoke
 return _process_result(sub_ctx.command.invoke(sub_ctx))
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 956, in invoke
 return ctx.invoke(self.callback, **ctx.params)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 555, in invoke
 return callback(*args, **kwargs)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/decorators.py",
 line 17, in new_func
 return f(get_current_context(), *args, **kwargs)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
 line 323, in engine_server
 pipeline=action[action_name]["pipeline"]
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
 line 259, in create
 root_obj = create_object(action)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
 line 255, in create_object
 _Action = dynamic_import("{}.{}".format(package_name, clazz))
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
 line 208, in dynamic_import
 mod = __import__(components[0])
ImportError: No module named marvin_cba3_engine
0 [main] INFO org.marvin.executor.EngineExecutorApp - Getting vm parameters...
285 [main] INFO org.marvin.executor.EngineExecutorApp - Setting Generic API 
actor system...
285 [main] INFO org.marvin.executor.EngineExecutorApp - Getting metadata file 
from engine...
286 [main] INFO org.marvin.executor.EngineExecutorApp - Reading json file from 
[/opt/marvin/engine/engine.metadata]...
1103 [main] INFO org.marvin.executor.EngineExecutorApp - Getting default 
parameters file from engine...
1103 [main] INFO org.marvin.executor.EngineExecutorApp - Reading json file from 
[/opt/marvin/engine/engine.params]...
1116 [main] INFO org.marvin.executor.EngineExecutorApp - Configuring engine 
executor app...
1119 [main] INFO org.marvin.executor.EngineExecutorApp - Getting default api 
docs file path from engine...
1440 [main] INFO org.marvin.executor.EngineExecutorApp - Initializing all 
actors in API actor system ...

  was:
 

It work perfectly when running directly via engine-httpserver local,  but it 
breaks when I when it on docker. 

  

 

(cba3-engine-env) guilherme@BRSPOBITANL0954:~/marvin/cba3-engine$ make 
docker-run
sudo docker run --name=marvin-cba3-0.00.01 --mount 
type=bind,source=/home/guilherme/marvin/data,destination=/marvin-data -p 
8000:8000 docker.registry.io/cba3:0.00.01
Starting server ...
Engine file engine.params loaded!
Engine file engine.metadata loaded!
Traceback (most recent call last):
 File "/opt/marvin/.virtualenvs/marvin-engine-env/bin/marvin", line 79, in 
<module>
 cli()
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 764, in __call__
 return self.main(*args, **kwargs)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 717, in main
 rv = self.invoke(ctx)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 1137, in invoke
 return _process_result(sub_ctx.command.invoke(sub_ctx))
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 956, in invoke
 return ctx.invoke(self.callback, **ctx.params)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
 line 555, in invoke
 return callback(*args, **kwargs)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/decorators.py",
 line 17, in new_func
 return f(get_current_context(), *args, **kwargs)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
 line 323, in engine_server
 pipeline=action[action_name]["pipeline"]
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
 line 259, in create
 root_obj = create_object(action)
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
 line 255, in create_object
 _Action = dynamic_import("{}.{}".format(package_name, clazz))
 File 
"/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
 line 208, in dynamic_import
 mod = __import__(components[0])
ImportError: No module named marvin_cba3_engine
0 [main] INFO org.marvin.executor.EngineExecutorApp - Getting vm parameters...
285 [main] INFO org.marvin.executor.EngineExecutorApp - Setting Generic API 
actor system...
285 [main] INFO org.marvin.executor.EngineExecutorApp - Getting metadata file 
from engine...
286 [main] INFO org.marvin.executor.EngineExecutorApp - Reading json file from 
[/opt/marvin/engine/engine.metadata]...
1103 [main] INFO org.marvin.executor.EngineExecutorApp - Getting default 
parameters file from engine...
1103 [main] INFO org.marvin.executor.EngineExecutorApp - Reading json file from 
[/opt/marvin/engine/engine.params]...
1116 [main] INFO org.marvin.executor.EngineExecutorApp - Configuring engine 
executor app...
1119 [main] INFO org.marvin.executor.EngineExecutorApp - Getting default api 
docs file path from engine...
1440 [main] INFO org.marvin.executor.EngineExecutorApp - Initializing all 
actors in API actor system ...


> Can't import engine when run httpserver in docker
> -------------------------------------------------
>
>                 Key: MARVIN-69
>                 URL: https://issues.apache.org/jira/browse/MARVIN-69
>             Project: Apache Marvin
>          Issue Type: Wish
>            Reporter: Guilherme Albarrans Leite
>            Priority: Major
>         Attachments: Screenshot from 2019-11-01 18-25-27.png
>
>
>  
> It work perfectly when running directly via engine-httpserver local,  but it 
> breaks when I when it on docker. 
> Printscreen in attachment.
>   
>  
> (cba3-engine-env) guilherme@BRSPOBITANL0954:~/marvin/cba3-engine$ make 
> docker-run
> sudo docker run --name=marvin-cba3-0.00.01 --mount 
> type=bind,source=/home/guilherme/marvin/data,destination=/marvin-data -p 
> 8000:8000 docker.registry.io/cba3:0.00.01
> Starting server ...
> Engine file engine.params loaded!
> Engine file engine.metadata loaded!
> Traceback (most recent call last):
>  File "/opt/marvin/.virtualenvs/marvin-engine-env/bin/marvin", line 79, in 
> <module>
>  cli()
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
>  line 764, in __call__
>  return self.main(*args, **kwargs)
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
>  line 717, in main
>  rv = self.invoke(ctx)
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
>  line 1137, in invoke
>  return _process_result(sub_ctx.command.invoke(sub_ctx))
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
>  line 956, in invoke
>  return ctx.invoke(self.callback, **ctx.params)
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/core.py",
>  line 555, in invoke
>  return callback(*args, **kwargs)
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/click/decorators.py",
>  line 17, in new_func
>  return f(get_current_context(), *args, **kwargs)
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
>  line 323, in engine_server
>  pipeline=action[action_name]["pipeline"]
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
>  line 259, in create
>  root_obj = create_object(action)
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
>  line 255, in create_object
>  _Action = dynamic_import("{}.{}".format(package_name, clazz))
>  File 
> "/opt/marvin/.virtualenvs/marvin-engine-env/local/lib/python2.7/site-packages/marvin_python_toolbox/management/engine.py",
>  line 208, in dynamic_import
>  mod = __import__(components[0])
> ImportError: No module named marvin_cba3_engine
> 0 [main] INFO org.marvin.executor.EngineExecutorApp - Getting vm parameters...
> 285 [main] INFO org.marvin.executor.EngineExecutorApp - Setting Generic API 
> actor system...
> 285 [main] INFO org.marvin.executor.EngineExecutorApp - Getting metadata file 
> from engine...
> 286 [main] INFO org.marvin.executor.EngineExecutorApp - Reading json file 
> from [/opt/marvin/engine/engine.metadata]...
> 1103 [main] INFO org.marvin.executor.EngineExecutorApp - Getting default 
> parameters file from engine...
> 1103 [main] INFO org.marvin.executor.EngineExecutorApp - Reading json file 
> from [/opt/marvin/engine/engine.params]...
> 1116 [main] INFO org.marvin.executor.EngineExecutorApp - Configuring engine 
> executor app...
> 1119 [main] INFO org.marvin.executor.EngineExecutorApp - Getting default api 
> docs file path from engine...
> 1440 [main] INFO org.marvin.executor.EngineExecutorApp - Initializing all 
> actors in API actor system ...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to