403 error
After deploying your application, if thereās an issue with file permissions or the workspace path, you may see the following or a similar error when you try to go to your applicationās URL:403 Forbidden You donāt have permission to access this resource.This error is usually caused by one of the following:
- Incorrect file permissions.
- Incorrect configuration within an .htaccess file.
- Configuration error in the workspace path in Apache configuration.
File permissions
File permissions control who can:- Read:Ā See the contents of a file or view files in a directory.
- Write:Ā Modify a file, or add or delete files in a directory.
- Execute:Ā Run a file and/or execute it as a script, or access a directory and perform functions and commands.
- Files:Ā 644 or 640
- Directories:Ā 755 or 750
.htaccess file
If your applicationās code includes an .htaccess file, verify that any configuration directives in it are correct. For example, a misconfiguredRewriteĀ or FilesMatchĀ directive can cause a 403 error.
WorkspaceĀ path
If your application uses a buildpackĀ and an Apache web server, an incorrect workspace path in your Apache configuration can cause a 403 error. The application logsĀ may show an error similar to the following:503 error
After a successful application deployment, if thereās an issue within the applicationās code or configuration, you may see the following error when you try to go to your applicationās URL:503 Service Temporarily UnavailableIf you cannot identify the issue, check the following.
Workspace path
If your application uses a buildpack and an Apache web server, an incorrect workspace path in your Apache configuration can cause a 503 error. The application logsĀ may show an error similar to the following:oom-killed error in the runtime logs (but it isnāt the only possible cause of an oom-killedĀ error).
If the error persists after checking and fixing any configuration issues, follow our Failed Deployment troubleshootingĀ guide. If the error remains beyond those steps, contact our Support team.