I had a problem deploying an EB instance with a custom .ebextensions file. This is the important part in this file:
container_commands: 01_migrate: command: 'python db_migrate.py' 02_npm_build: command: 'npm install && npm run prod'
As you can see, these commands are designed to transfer my PostgreSQL database (via a flash drive) and create React.jsx files.
If I leave these commands, the deployment will complete perfectly. However, as soon as I insert them, looking at eb-activity.log, it stops on this part forever (as far as I can tell):
[2017-04-10T02:39:24.106Z] INFO [3023] - [Application deployment app-613e-170409_223418@1 /StartupStage0/EbExtensionPostBuild] : Starting activity...
I also get this message in the health review in the console (this happens after 1 day):
Performing application deployment (running for 1 day).
I also tried to deploy it without these container_commands commands, and then enable it after a successful initial deployment. Then I get the same error message as before in eb-activity.log, and I also get this message in the health overview:
Incorrect application version "app-2a3d-170409_214923" (deployment 1). Expected version "app-2a3d-170409_214923" (deployment 1).
This is very strange because these two versions belong to the same versions. I do not know what it means!
source share