# :( Application Error on Azure

**URL:** <https://gramps.discourse.group/t/application-error-on-azure/4536>\
**Category:** Gramps Web\
**Created:** [December 18, 2023, 5:23pm UTC](https://gramps.discourse.group/t/application-error-on-azure/4536 "2023-12-18T17:23:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pip3queak](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/pip3queak/32/3633_2.png) [@Pip3queak](https://gramps.discourse.group/u/Pip3queak)\
**Post date:** [December 18, 2023, 5:23pm UTC](https://gramps.discourse.group/t/application-error-on-azure/4536/1 "2023-12-18T17:23:53Z")

</div>

Tried installing using “App Services” on Azure, but keep getting

> ☹ Application Error
> 
> If you are the application administrator, you can access the [diagnostic resources](https://xxx.scm.azurewebsites.net/detectors).

1. I tried both nginx and the non-nginx docker-compose.yml files

2. I tried [various plans](https://azure.microsoft.com/en-us/pricing/details/app-service/linux/#pricing) - from “free” to “basic” and to the “P1v3” (better than the basic plan)

 ![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/5/51e8b842aff5f5d9cc80e9e3e89bc6b23bd83583.png)

I am quite new at cloud services and the reason I’m using Azure instead of digital ocean is because I’ve got free azure credits.

---

<div class="post-metadata">

**Author:** ![DavidMStraub](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davidmstraub/32/7_2.png) [@DavidMStraub](https://gramps.discourse.group/u/DavidMStraub)\
**Post date:** [December 18, 2023, 5:54pm UTC](https://gramps.discourse.group/t/application-error-on-azure/4536/2 "2023-12-18T17:54:56Z")

</div>

200 USD/month is definitely oversized 😲

If you have never deployed an app with docker-compose to Azure, I suggest following a few tutorials first, and reading the documentation at [Getting Started - Gramps Web](https://www.grampsweb.org/admin/) in detail.

When you are confident you have a setup that _should_ work but doesn’t, please share all details (except private data like credentials) and logs here and we’ll do our best to help you.

---

<div class="post-metadata">

**Author:** ![Pip3queak](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/pip3queak/32/3633_2.png) [@Pip3queak](https://gramps.discourse.group/u/Pip3queak)\
**Post date:** [December 18, 2023, 5:59pm UTC](https://gramps.discourse.group/t/application-error-on-azure/4536/3 "2023-12-18T17:59:39Z")

</div>

Definitely agree it is oversized - I just wanted to make sure it wasn’t the plan that was restricting the app. Pretty sure I read that web page again and again. I don’t think running docker-compose is complicated on Azure.

---

<div class="post-metadata">

**Author:** ![Pip3queak](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/pip3queak/32/3633_2.png) [@Pip3queak](https://gramps.discourse.group/u/Pip3queak)\
**Post date:** [December 18, 2023, 6:01pm UTC](https://gramps.discourse.group/t/application-error-on-azure/4536/4 "2023-12-18T18:01:13Z")

</div>

I ran exactly the yaml file.

I did change the nginx ones to reflect the dns, but it shows the same application error message.

```python
version: "3.7"

services:
  grampsweb: &grampsweb
    image: ghcr.io/gramps-project/grampsweb:latest
    restart: always
    ports:
      - "80:5000" # host:docker
    environment:
      GRAMPSWEB_TREE: "Gramps Web" # will create a new tree if not exists
      GRAMPSWEB_CELERY_CONFIG__broker_url: "redis://grampsweb_redis:6379/0"
      GRAMPSWEB_CELERY_CONFIG__result_backend: "redis://grampsweb_redis:6379/0"
      GRAMPSWEB_RATELIMIT_STORAGE_URI: redis://grampsweb_redis:6379/1
    depends_on:
      - grampsweb_redis
    volumes:
      - gramps_users:/app/users # persist user database
      - gramps_index:/app/indexdir # persist search index
      - gramps_thumb_cache:/app/thumbnail_cache # persist thumbnails
      - gramps_cache:/app/cache # persist export and report caches
      - gramps_secret:/app/secret # persist flask secret
      - gramps_db:/root/.gramps/grampsdb # persist Gramps database
      - gramps_media:/app/media # persist media files
      - gramps_tmp:/tmp

  grampsweb_celery:
    <<: *grampsweb # YAML merge key copying the entire grampsweb service config
    ports: []
    container_name: grampsweb_celery
    depends_on:
      - grampsweb_redis
    command: celery -A gramps_webapi.celery worker --loglevel=INFO

  grampsweb_redis:
    image: redis:alpine
    container_name: grampsweb_redis
    restart: always

volumes:
  gramps_users:
  gramps_index:
  gramps_thumb_cache:
  gramps_cache:
  gramps_secret:
  gramps_db:
  gramps_media:
  gramps_tmp:

```

---

<div class="post-metadata">

**Author:** ![Pip3queak](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/pip3queak/32/3633_2.png) [@Pip3queak](https://gramps.discourse.group/u/Pip3queak)\
**Post date:** [December 19, 2023, 1:36am UTC](https://gramps.discourse.group/t/application-error-on-azure/4536/5 "2023-12-19T01:36:17Z")

</div>

Ok, I found out the azure compose deployer has limitations. Some of these commands are not supported ☹  
[Configure a custom container - Azure App Service | Microsoft Learn](https://learn.microsoft.com/en-us/azure/app-service/configure-custom-container?tabs=debian&pivots=container-linux#preview-limitations)
