Amplify build fails with permission denied error
ivo-sudo opened this issue · 0 comments
Describe the bug
Build fails in Amplify
To Reproduce
Steps to reproduce the behavior:
- Followed the deployment guide as per the docs
- CF stack completes successfully
- App deployment fails at build stage in the Amplify console
- See error
Expected behavior
Build to complete
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
2024-02-29T14:09:28.332Z [INFO]: # Executing command: update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.9 11
2024-02-29T14:09:28.400Z [WARNING]: failed to create /var/lib/alternatives/python3.new: Permission denied
2024-02-29T14:09:28.402Z [ERROR]: !!! Build failed
2024-02-29T14:09:28.402Z [ERROR]: !!! Error: Command failed with exit code 2
Changing the build settings by putting sudo in front of the update-alternatives command appears to work but the build then fails on the next step.