#WiredTiger error on startup in Azure App Service for Containers

1 messages · Page 1 of 1 (latest)

drifting wave
#

Hello everyone. I've been able to get appsmith started in Azure on an App Service for Containers (linux) using the following compose:

version: "3"

services:
  appsmith:
    image: index.docker.io/appsmith/appsmith-ce
    container_name: appsmith
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ${WEBAPP_STORAGE_HOME}/stacks:/appsmith-stacks
    restart: unless-stopped

I am then able load appsmith in the browser through the app service URL, however it shows an error page. I see in the app service logs that it fails to connect to mongodb, then inspecting the docker logs I can see that mondodb is failing to start. Diving deeper, here is the relevant snipped from the MongoDB logs (full log attached):

...
./WiredTiger.wt: handle-open: open: Operation not permitted
./WiredTiger.wt: handle-open: open: File exists
unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.47
Failed to start up WiredTiger under any compatibility version. This may be due to an unsupported upgrade or downgrade.

Please advise!

wintry crescentBOT
#

👋 [https://assets.frontapp.com/emoji-data-13.1/img-apple-64/1f44b.png] There!
We are really sorry that you are stuck with this issue 😔
[https://assets.frontapp.com/emoji-data-13.1/img-apple-64/1f614.png]

To help us debug it, could you please share some more info?

  • Which version of Appsmith are you on?
  • Provide screenshots/screen recording of original error/code snippet.
  • Add details about your use case and provide steps to reproduce the issue, if
    possible.

Give our App Smiths 🦸
[https://assets.frontapp.com/emoji-data-13.1/img-apple-64/1f9b8.png] some time
to analyse the issue and get back to you.

drifting wave
#

Hello bot! I believe all of the information is provided in the original post. You should be able to recreate the issue by creating a new app service for containers through the portal wizard and pasting the above compose yml on that step.

wintry crescentBOT
#

Please also send us the server logs to help us investigate the issue. You can
grab the logs by running docker logs -f appsmith.
Or you could follow the steps from this guide on how to get the logs:
https://github.com/felix-appsmith/guide-how-to-get-logs-appsmith for a
deployment based on Docker Compose (most common) to get the logs.

GitHub

Contribute to felix-appsmith/guide-how-to-get-logs-appsmith development by creating an account on GitHub.

drifting wave
wintry crescentBOT
#

Thanks. We will check these and get back to you.

drifting wave
wintry crescentBOT
#

Thanks for this! The team will have a look and get back to you.

wintry crescentBOT
drifting wave
#

Hi @wintry crescent, it is similar but I don't think related. In this case I am not using a fileshare and the application is able to progress past the encryption step. I do believe it is related to the permissions on the volume. A google search shows that others have had success updating them:

https://github.com/bitnami/charts/issues/3106#issuecomment-662053832
https://github.com/bitnami/bitnami-docker-mongodb/issues/206#issuecomment-617589288

GitHub

Hi I created a storage Account in Azure with file share , out of that created persistedVolume and Claim and specified those values for the mongodb chart mongoDB values mongodb: nameOverride: xxxxx-...

GitHub

Description I've problem with mounting Azure Storage to mongoDB. I can deploy mongoDB to Azure without any issue, but problem starts after i'm trying to do Persistent Data . Steps t...

opal yarrow
#

Hey @drifting wave, sorry you are facing trouble here. There were a few reports of Appsmith not functioning well on App Service in the past, but they usually weren't possible to reproduce. We're going to try this again and see if we can get to the bottom of this.

Meanwhile, to unblock you, is it possible to run Appsmith on a proper VM instance on Azure, with a disk volume attached? The same docker-compose.yml that you shared earlier should work for this just fine, after changing just ${WEBAPP_STORAGE_HOME}/stacks to ./stacks.

Let us know if you can try this out and it you're having any troubles with this. Thanks!

drifting wave
#

Hi @opal yarrow , I'm actually one step ahead of you and attempting the VM setup now. I will report back. Thank you!

wintry crescentBOT
#

🚀

drifting wave
#

Hi @wintry crescent @opal yarrow , I was able to deploy to a VM and am unblocked for now, however this is not our preferred solution and only viable for testing. Would still love to have a solution on a serverless Azure hosted option please!