<?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 Re: Error when uploading MLFlow artifacts to DBFS in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/error-when-uploading-mlflow-artifacts-to-dbfs/m-p/117499#M4044</link>
    <description>&lt;P&gt;It is considered best practice &lt;STRONG&gt;not&lt;/STRONG&gt; to store any production data or assets in DBFS (Databricks File System). The primary reason is that DBFS does not provide robust security controls-anyone with workspace access can potentially access items stored there. Instead, Databricks strongly recommends using Unity Catalog for managing and securing your data and AI assets. Unity Catalog offers centralized access control, fine-grained permissions, and enhanced auditing capabilities, making it the preferred solution for production workloads.&lt;/P&gt;
&lt;P&gt;DBFS is now considered a legacy storage option and both DBFS mounts and root storage are deprecated due to security risks and their incompatibility with Unity Catalog’s governance model. While there is no official deprecation date yet, it is advisable to migrate your production assets to Unity Catalog Volumes to ensure future compatibility and security.&lt;/P&gt;
&lt;P&gt;In summary, use Unity Catalog for all production data and AI assets, and avoid storing anything critical in DBFS.&lt;/P&gt;
&lt;P&gt;Hope this help, Big Roux.&lt;/P&gt;</description>
    <pubDate>Fri, 02 May 2025 11:40:52 GMT</pubDate>
    <dc:creator>Louis_Frolio</dc:creator>
    <dc:date>2025-05-02T11:40:52Z</dc:date>
    <item>
      <title>Error when uploading MLFlow artifacts to DBFS</title>
      <link>https://community.databricks.com/t5/machine-learning/error-when-uploading-mlflow-artifacts-to-dbfs/m-p/116527#M4040</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm attempting to use MLFlow experiment tracking from a local machine, but I'm encountering difficulties in uploading artifacts.&lt;/P&gt;&lt;P&gt;I've tried a sample code as simple as the following.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import mlflow
import os

os.environ["DATABRICKS_HOST"] = "https://XXXXXX.cloud.databricks.com/"
os.environ["DATABRICKS_TOKEN"] = "dapiXXXXX"

mlflow.set_tracking_uri("databricks")
mlflow.set_experiment("XXXX")

with mlflow.start_run() as run:
    mlflow.log_param("param1", 5)
    mlflow.log_metric("foo", 1, step=0)
    mlflow.log_metric("foo", 2, step=1)
    mlflow.log_metric("foo", 3, step=2)
    mlflow.log_metric("foo", 4, step=3)
    mlflow.log_metric("foo", 5, step=4)
    mlflow.log_artifact("main.py")&lt;/LI-CODE&gt;&lt;P&gt;This code successfully created a new run in the target MLFlow experiment, and logged the parameters "param1" and metric "foo" correctly. However, it failed to log the artifact and displayed an error message like the following.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mlflow.exceptions.MlflowException: 403 Client Error: Forbidden for url: https://dbstorage-prod-whkxn.s3.ap-southeast-2.amazonaws.com/ws/xxxxxxxxxxxxxxxxx (an AWS presigned URL). Response text: &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;Error&amp;gt;&amp;lt;Code&amp;gt;AccessDenied&amp;lt;/Code&amp;gt;&amp;lt;Message&amp;gt;Access Denied&amp;lt;/Message&amp;gt;&amp;lt;RequestId&amp;gt;xxxxxxxxxxxxxxxx&amp;lt;/RequestId&amp;gt;&amp;lt;HostId&amp;gt;xxxxxxxxxxxxx&amp;lt;/HostId&amp;gt;&amp;lt;/Error&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Do I need any further setting to make artifact logging available?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 01:12:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-when-uploading-mlflow-artifacts-to-dbfs/m-p/116527#M4040</guid>
      <dc:creator>xming</dc:creator>
      <dc:date>2025-04-25T01:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading MLFlow artifacts to DBFS</title>
      <link>https://community.databricks.com/t5/machine-learning/error-when-uploading-mlflow-artifacts-to-dbfs/m-p/116610#M4041</link>
      <description>&lt;P&gt;A couple things:&lt;/P&gt;
&lt;P&gt;1. If you don't own the mlflow experiment you need ot have edit permissions on the experiment (needed for logging).&amp;nbsp;Default artifact locations in DBFS (`dbfs:/databricks/mlflow-tracking/`) require explicit write permissions&lt;/P&gt;
&lt;P&gt;2. The location you are writing to, make sure you have proper entitelemnts to write to that location.&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;Unity Catalog volumes require `USE CATALOG` and `USE VOLUME` privileges (if you are using Unity Catalog).&lt;/P&gt;
&lt;P&gt;Hope this helps, Louis.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 17:15:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-when-uploading-mlflow-artifacts-to-dbfs/m-p/116610#M4041</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-04-25T17:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading MLFlow artifacts to DBFS</title>
      <link>https://community.databricks.com/t5/machine-learning/error-when-uploading-mlflow-artifacts-to-dbfs/m-p/117497#M4043</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for the advice! I managed to upload artifacts by creating a Unity Catalog volume and explicitly setting it as the artifact location.&lt;/P&gt;&lt;P&gt;However, I am still wondering if it is possible to upload artifact to the default DBFS artifact location. How can I grant the explicit write permission to the default location?&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 11:23:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-when-uploading-mlflow-artifacts-to-dbfs/m-p/117497#M4043</guid>
      <dc:creator>xming</dc:creator>
      <dc:date>2025-05-02T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error when uploading MLFlow artifacts to DBFS</title>
      <link>https://community.databricks.com/t5/machine-learning/error-when-uploading-mlflow-artifacts-to-dbfs/m-p/117499#M4044</link>
      <description>&lt;P&gt;It is considered best practice &lt;STRONG&gt;not&lt;/STRONG&gt; to store any production data or assets in DBFS (Databricks File System). The primary reason is that DBFS does not provide robust security controls-anyone with workspace access can potentially access items stored there. Instead, Databricks strongly recommends using Unity Catalog for managing and securing your data and AI assets. Unity Catalog offers centralized access control, fine-grained permissions, and enhanced auditing capabilities, making it the preferred solution for production workloads.&lt;/P&gt;
&lt;P&gt;DBFS is now considered a legacy storage option and both DBFS mounts and root storage are deprecated due to security risks and their incompatibility with Unity Catalog’s governance model. While there is no official deprecation date yet, it is advisable to migrate your production assets to Unity Catalog Volumes to ensure future compatibility and security.&lt;/P&gt;
&lt;P&gt;In summary, use Unity Catalog for all production data and AI assets, and avoid storing anything critical in DBFS.&lt;/P&gt;
&lt;P&gt;Hope this help, Big Roux.&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 11:40:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/error-when-uploading-mlflow-artifacts-to-dbfs/m-p/117499#M4044</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-05-02T11:40:52Z</dc:date>
    </item>
  </channel>
</rss>

