This message was deleted.
# announcements
s
This message was deleted.
c
Hi @Naren Nadig - looks like there are some issue with this saved bundle
could you tell me more about how you got here?
n
So I uploaded my file "20200825112818_29410B" on github after succesfully testing it locally...The Image got built..But when running it had some issues .. this was part of my tekton CI/CD
c
Did you test building a docker image with 20200825112818_29410B directory locallly as well?
n
Yeahhh
Copy code
[2020-08-26 14:08:16,263] INFO - Starting BentoML API server in production mode..
[2020-08-26 14:08:16,720] INFO - get_gunicorn_num_of_workers: 5, calculated by cpu count
[2020-08-26 14:08:16 +0000] [1] [INFO] Starting gunicorn 20.0.4
[2020-08-26 14:08:16 +0000] [1] [INFO] Listening at: <http://0.0.0.0:5000>  (1)
[2020-08-26 14:08:16 +0000] [1] [INFO] Using worker: sync
[2020-08-26 14:08:16 +0000] [17] [INFO] Booting worker with pid: 17
[2020-08-26 14:08:16 +0000] [18] [INFO] Booting worker with pid: 18
[2020-08-26 14:08:16 +0000] [19] [INFO] Booting worker with pid: 19
[2020-08-26 14:08:16 +0000] [20] [INFO] Booting worker with pid: 20
[2020-08-26 14:08:16 +0000] [21] [INFO] Booting worker with pid: 21
[2020-08-26 14:08:17,083] WARNING - Saved BentoService Python version mismatch: loading BentoService bundle created with Python version 3.6.8, but current environment version is 3.7.6.
[2020-08-26 14:08:17 +0000] [17] [ERROR] Exception in worker process
Traceback (most recent call last):
  File "/opt/conda/lib/python3.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
    worker.init_process()
  File "/opt/conda/lib/python3.7/site-packages/gunicorn/workers/base.py", line 119, in init_process
    self.load_wsgi()
  File "/opt/conda/lib/python3.7/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
    self.wsgi = self.app.wsgi()
  File "/opt/conda/lib/python3.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/opt/conda/lib/python3.7/site-packages/bentoml/server/gunicorn_server.py", line 91, in load
    bento_service = load(self.bento_service_bundle_path)
  File "/opt/conda/lib/python3.7/site-packages/bentoml/saved_bundle/loader.py", line 199, in load
    svc_cls = load_bento_service_class(bundle_path)
  File "/opt/conda/lib/python3.7/site-packages/bentoml/saved_bundle/loader.py", line 119, in load_bento_service_class
    metadata["module_file"], bundle_path
bentoml.exceptions.BentoMLException: Can not locate module_file holt_classifier.py in saved bundle /bento
[2020-08-26 14:08:17 +0000] [17] [INFO] Worker exiting (pid: 17)
This is the error I keep getting @Chaoyu
c
Do you mind share the entire bundle file? If it doesn’t contain sensitive data
Or run tree command to show me all the files and structure in the bundle?
after seeing the github issue I think I understand what’s going on now
You created the bundle on a windows machine and deploy on Linux right?
n
ummm not exactly @Chaoyu ...It was the same OS
This is my tree structure
cc @Soumo Chakraborty
c
@Naren Nadig What is the python version? could you also share the content of bentoml.yml file?
n
@Chaoyu 3.6.8
here you go @Chaoyu
c
@Naren Nadig you have tried building and runing the docker image with this saved bundle and it all works on your local dev machine right?
It is only a problem when running on tecton?
n
yes @Chaoyu
c
could you share a bit more detail so we can reproduce it?
n
Sure
My teammate @Soumo Chakraborty will explain it
s
Hi Chaoyu
we see errors while running the pipeline over tekton however when we try to deploy it using local system it goes through
this is the error we see continuously -
Copy code
metadata["module_file"], bundle_path
bentoml.exceptions.BentoMLException: Can not locate module_file holt_classifier.py in saved bundle /bento
this is weird, need help!
c
Hi Soumo, could you tell me how did you set up the tekto pipeline
Step by step instructions that can allow me to reproduce on my end would be most helpful
did you use docker to deploy? How was the docker image created? Were you testing the same image on local system?
s
yes, deployed using docker
surely
do you want the manifests?
c
Step by step instructions that allows me to reproduce would be the best
can you try reproduce it with a local tekton & Minikube deployment using the BentoML QuickStart example?
Would be great if you could create a GitHub bug report issue and fill out the template
s
yes, but lets have a working session with you...may be we are missing something
when shall I setup a meeting?