Understanding Logs
Understanding common logs which you may see in your application.
[error] Access forbidden by rule
As is common for many websites on the internet, bots may often scan trying to find vulnerabilities on your website. When a bot tries to request access to a page that does not exist, or is explicitly blocked by Laravel Cloud for security purposes, you may see related [error]
logs. These can be safely ignored.
fatal: not a git repository
Some packages may attempt to access your .git
directory during runtime in your application. When using Laravel Cloud, the .git
folder is removed during the deploy process, meaning this directory is unavailable at runtime, which can trigger this error for packages that depend on this. For example, having Sentry installed will allow you the option to run git to grab the current commit hash, thus triggering these errors.
If a package depends on your deployment’s git hash being available, you can inject it as an environment variable by adding the following to your build commands:
[truncated due size]
The message [truncated due size...]
log is indicating that a log message exceeded a size limit, causing the message to be cut off. This typically happens when logs or error messages are too lengthy. This can be common during your deployment process. To reduce the size of the content printed out for your deploy commands, you can reduce the commands’ verbosity through additional flags:
Note that if your application is in APP_DEBUG=true
, errors will produce a full stack track which can be truncated.
Was this page helpful?