# Multipage app deployment failed on render

**URL:** <https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750>\
**Category:** Dash Python\
**Created:** [March 21, 2023, 10:01am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750 "2023-03-21T10:01:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 10:01am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/1 "2023-03-21T10:01:49Z")

</div>

Hi beloved community members  
I have recently developed a dashboard for our hospital it ran successfully on the local host however when I wanted to deploy it on render it returned an error  
raise exceptions.InvalidConfig(error\_msg)  
Mar 21 12:48:13 PM dash.exceptions.InvalidConfig: A folder called `pages` does not exist. If a folder for pages is not  
Mar 21 12:48:13 PM required in your application, set `pages_folder=""`. For example:  
Mar 21 12:48:13 PM `app = Dash( __name__ , pages_folder="")`  
I would like to emphasize the fact that I tried all possible options looked in the documentation and stackoverflow but to no avail may you please help me  
this this link to my git hub repository

> **[GitHub - Datascientist88/Monthly\_Hospital\_performance\_\_Dashboard](https://github.com/Datascientist88/Monthly_Hospital_performance__Dashboard)**
>
> Contribute to Datascientist88/Monthly\_Hospital\_performance\_\_Dashboard development by creating an account on GitHub.

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/c/c/ccf2e825210ea53b50c4d8f4336667ae3cf476e4.png)  
with kind regards

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [March 21, 2023, 10:19am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/2 "2023-03-21T10:19:33Z")

</div>

Hi, you might try @andrew-hossack’ s tool:

> [@All-in-one Plotly Dash App Builder & Web Deployment Dashboard](https://community.plotly.com/t/all-in-one-plotly-dash-app-builder-web-deployment-dashboard/72216):
>
> Hey y’all wave! I’ve built out a GUI tool that can be used to BUILD and DEPLOY plotly dash apps. You can select from (and preview!) different app templates to create, and then deploy them to [Render.com](http://Render.com) for free, all in one place. Let’s Make An App Start the tool with the: dashtools gui command in your terminal. The DashTools dashboard will open in the browser. Here you can select from different app templates (some not shown):

[![](https://img.youtube.com/vi/XWJBJoV5yww/maxresdefault.jpg "[new] Share your Dash App with Others on the Web - Render") ](https://www.youtube.com/watch?v=XWJBJoV5yww)

---

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 10:29am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/3 "2023-03-21T10:29:28Z")

</div>

I already tried to deploy it on render but I failed due to the error shown above

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [March 21, 2023, 10:34am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/4 "2023-03-21T10:34:54Z")

</div>

Hello @Bahageel88,

The pages directory is the default location for pages, you shouldn’t need to declare that to work. Just pass use\_pages=True.

I recommend taking that out and trying again.

---

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 10:39am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/5 "2023-03-21T10:39:48Z")

</div>

hello  
I did it and its working perfectly on the local host the problem occurred when I tried to deploy on render please have a look at my code on Github

> **[GitHub - Datascientist88/Monthly\_Hospital\_performance\_\_Dashboard](https://github.com/Datascientist88/Monthly_Hospital_performance__Dashboard)**
>
> Contribute to Datascientist88/Monthly\_Hospital\_performance\_\_Dashboard development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [March 21, 2023, 10:48am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/6 "2023-03-21T10:48:23Z")

</div>

I did, thats why I suggested that you do this, change this:

```auto
# set the app layout--------------------------------------------------------------------------
pages_folder=os.path.join(os.path.dirname( __name__ ), "pages")
app=dash.Dash(external_stylesheets=[dbc.themes.CYBORG],meta_tags=[{'name': 'viewport',
'content': 'width=device-width, initial-scale=1.0'}],suppress_callback_exceptions=True,use_pages=True,pages_folder=pages_folder)
server=app.server

```

vvv

```auto
# set the app layout--------------------------------------------------------------------------
app=dash.Dash(external_stylesheets=[dbc.themes.CYBORG],meta_tags=[{'name': 'viewport',
'content': 'width=device-width, initial-scale=1.0'}],suppress_callback_exceptions=True,use_pages=True)
server=app.server

```

---

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 10:59am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/7 "2023-03-21T10:59:00Z")

</div>

I already tried this approach and the argument use\_pages=True already set the problem is that render host has trouble identifying the directory where the pages reside  
Thank you very much indeed for your suggestions

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [March 21, 2023, 11:01am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/8 "2023-03-21T11:01:05Z")

</div>

Renderer should be finding the pages folder.

Have you made sure the pages folder exists there?

---

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 11:18am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/9 "2023-03-21T11:18:05Z")

</div>

Really appreciate your effort to help me  
but its already there  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/3/a/3ad67a8b6490c2b73f64a5ab8e3c78e5b0582e36.png)  
thank you

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [March 21, 2023, 11:19am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/10 "2023-03-21T11:19:53Z")

</div>

That is just your github repo.

I am asking you to confirm that your renderer deployment actually has the pages folder. 🙂

---

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 11:22am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/11 "2023-03-21T11:22:05Z")

</div>

may you explain it further for me how to confirm renderer deployment actually has the pages folder ?

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [March 21, 2023, 11:26am UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/12 "2023-03-21T11:26:57Z")

</div>

I have not deployed to renderer, so I dont exactly know.

Looking at the video that @AIMPED posted above, it does seem that your repo is missing a yaml file if you went that route for deploying.

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [March 21, 2023, 12:04pm UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/13 "2023-03-21T12:04:34Z")

</div>

If you follow the video you’ll see, that pages, assets and app.py are actually stored in a src folder.

I used dash-tools to deploy this github:

> **[GitHub - AIMPED/plotlyDash\_example\_collection](https://github.com/AIMPED/plotlyDash_example_collection)**
>
> Contribute to AIMPED/plotlyDash\_example\_collection development by creating an account on GitHub.

BTW: are you sure you want the data to be stored on github? How does that relate to

> [@Confidentiality concerns in dash apps](https://community.plotly.com/t/confidentiality-concerns-in-dash-apps/73534):
>
> Good evening My beloved plotly community members We recently transferred to a new hospital, the owner wants me to design a real time hospital performance dashboard with dash my question for you is that : how can I address the confidentiality concerns my manager has when developing and deploying this web application Please help me with your ideas and suggestions With kind regards

---

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 12:51pm UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/14 "2023-03-21T12:51:41Z")

</div>

this is not the data this is prototype  
the project will be implemented in April  
thank very much for your positive comment

---

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 1:02pm UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/15 "2023-03-21T13:02:03Z")

</div>

I tried also using src within which I put assets ,data and pages and added yaml file but didn’t work either  
The same error message returned

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [March 21, 2023, 1:20pm UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/16 "2023-03-21T13:20:45Z")

</div>

Have you tried starting from scratch?

---

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 1:32pm UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/17 "2023-03-21T13:32:02Z")

</div>

You mean coding all the pages why if it’s tested and ran successfully on my local computer?

---

<div class="post-metadata">

**Author:** ![jinnyzor](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jinnyzor/32/21194_2.png) [@jinnyzor](https://community.plotly.com/u/jinnyzor)\
**Post date:** [March 21, 2023, 1:49pm UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/18 "2023-03-21T13:49:29Z")

</div>

No, restart the whole deploy process.

---

<div class="post-metadata">

**Author:** ![Bahageel88](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/bahageel88/32/22563_2.png) [@Bahageel88](https://community.plotly.com/u/Bahageel88)\
**Post date:** [March 21, 2023, 2:08pm UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/19 "2023-03-21T14:08:26Z")

</div>

I followed your instructions scrupulously but no change whatsoever  
Really sorry

---

<div class="post-metadata">

**Author:** ![hoatran](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/hoatran/32/21447_2.png) [@hoatran](https://community.plotly.com/u/hoatran)\
**Post date:** [March 21, 2023, 2:47pm UTC](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750/20 "2023-03-21T14:47:45Z")

</div>

@Bahageel88 : Tried to deploy and it worked.  
You can see it here: [https://testtttt-dgt7.onrender.com/](https://testtttt-dgt7.onrender.com/)  
I copied your code and post it here: [GitHub - hoatranobita/testttt](https://github.com/hoatranobita/testttt)

So as I said, I think you should check setting on render. Below is my settings.

 ![Screenshot 2023-03-21 214620](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/a/1/a18fda0a8453de8e1e3a452c48efeb25eab7cdb2.png)  
 ![Screenshot 2023-03-21 214642](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/1/a/1a957cbdf2afd14b5f32e4c04e5188eea9c508cf.png)  
 ![Screenshot 2023-03-21 214710](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/d/0/d018e34d58378b2f2636c44422a7f37a384c8840.png)

[Next page](https://community.plotly.com/t/multipage-app-deployment-failed-on-render/73750.md?page=2)
