Category: Deployment
Resource links
Updated

Unable to start Appsmith Instance: /appsmith-stacks/configuration/docker.env: line <x>: <random>: command not found

Issue

When trying to start up an Appsmith instance, the following error shows in the log: 

/appsmith-stacks/configuration/docker.env: line <x>: <random>: command not found (where <x> is the line number in the docker.env file and <random> is the command that wasn't found)

Resolution

There could be several reasons for getting this error, so this article is for the purpose of guiding you through different scenarios as we see them reported by the users of Appsmith:

1. Shared EFS between two Appsmith deployments: In a situation where you have two separate Appsmith deployments on a shared EFS, this is most likely the cause of the issue. Primarily, you shouldn't share an EFS across two different Appsmith deployments because, both deployments would be using the same docker.env file, and this could cause a corruption of the docker.env file. To get unblocked, here are the steps you have to follow: 

  • Create a backup of your current docker.env file
  • From the active docker.env file, remove line <x> as specified from the error message
  • Restart your Appsmith Deployment and you should be good to go. 

If it becomes absolutely necessary that you use a shared EFS, what you can do is create different root partitions for both deployments so that it is impossible for the deployments to mess with each other.  You can follow this guide on how to do just that. 



If you can't find your specific scenario here, please contact the Appsmith support team through the support channel on our Discord and tell us about your scenario.