<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Serving endpoints: model server failed to load the model: the file bash was not found: uknown in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/serving-endpoints-model-server-failed-to-load-the-model-the-file/m-p/44060#M2164</link>
    <description>&lt;P&gt;While trying to create a serving endpoint with my custom model, I get a "Failed" state:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;Model server failed to load the model. Please see service logs for more information.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The service logs show the following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Container failed with: failed to create containerd task: failed to create shim task: the file bash was not found: unknown&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To me it is unclear what could be wrong. The model is a custom PythonModel, where a&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ConversationalRetrievalChain from langchain and a faiss vector store (in artifacts the path to dbfs is given) are used.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Does anyone have an idea about what could be causing this error?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 08 Sep 2023 07:09:15 GMT</pubDate>
    <dc:creator>tessaickx</dc:creator>
    <dc:date>2023-09-08T07:09:15Z</dc:date>
    <item>
      <title>Serving endpoints: model server failed to load the model: the file bash was not found: uknown</title>
      <link>https://community.databricks.com/t5/machine-learning/serving-endpoints-model-server-failed-to-load-the-model-the-file/m-p/44060#M2164</link>
      <description>&lt;P&gt;While trying to create a serving endpoint with my custom model, I get a "Failed" state:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;Model server failed to load the model. Please see service logs for more information.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The service logs show the following:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Container failed with: failed to create containerd task: failed to create shim task: the file bash was not found: unknown&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To me it is unclear what could be wrong. The model is a custom PythonModel, where a&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ConversationalRetrievalChain from langchain and a faiss vector store (in artifacts the path to dbfs is given) are used.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Does anyone have an idea about what could be causing this error?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Sep 2023 07:09:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/serving-endpoints-model-server-failed-to-load-the-model-the-file/m-p/44060#M2164</guid>
      <dc:creator>tessaickx</dc:creator>
      <dc:date>2023-09-08T07:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Serving endpoints: model server failed to load the model: the file bash was not found: uknown</title>
      <link>https://community.databricks.com/t5/machine-learning/serving-endpoints-model-server-failed-to-load-the-model-the-file/m-p/44066#M2165</link>
      <description>&lt;P&gt;Update:&amp;nbsp;&lt;/P&gt;&lt;P&gt;After minor changes in the code, my endpoint failed again but with a different error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tessaickx_0-1694165345862.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3607i76A7965C53633114/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="tessaickx_0-1694165345862.png" alt="tessaickx_0-1694165345862.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 09:29:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/serving-endpoints-model-server-failed-to-load-the-model-the-file/m-p/44066#M2165</guid>
      <dc:creator>tessaickx</dc:creator>
      <dc:date>2023-09-08T09:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Serving endpoints: model server failed to load the model: the file bash was not found: uknown</title>
      <link>https://community.databricks.com/t5/machine-learning/serving-endpoints-model-server-failed-to-load-the-model-the-file/m-p/58270#M2898</link>
      <description>&lt;P&gt;I have faced the similar issue. still didn't find the right solution. In my case, the below is the error trace i found from service logs. Not sure where the issue could be&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"An error occurred while loading the model. You haven't configured the CLI yet! Please configure by entering `/opt/conda/envs/mlflow-env/bin/gunicorn configure`."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;These are the few things i have tried after did some research.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure the cluster ML compatible DBR, i used the 13.3.&lt;/LI&gt;&lt;LI&gt;Added all the libraries which required to the cluster directly in the cluster configuration.&lt;/LI&gt;&lt;LI&gt;Pip dependencies has been logged with the langchain model.&lt;/LI&gt;&lt;LI&gt;Tried to manually point out mlflow env in cluster configuration as per some of the blogs, but the UI is not showing the options like that.&lt;/LI&gt;&lt;LI&gt;Tried different compute combinations of end point configurations.&lt;/LI&gt;&lt;LI&gt;Configured the databricks CLI inside the cluster and make sure it has setup properly&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 23 Jan 2024 13:18:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/serving-endpoints-model-server-failed-to-load-the-model-the-file/m-p/58270#M2898</guid>
      <dc:creator>ravi-malipeddi</dc:creator>
      <dc:date>2024-01-23T13:18:17Z</dc:date>
    </item>
  </channel>
</rss>

