Kibana filters and useful CLI commands
Service logs available in Kibana and their filter queries
Cron
ElasticSearch
Application
Redis
Nginx
If you see that your logs are duplicated, then keep in mind that nginx has many server blocks in its configuration, so one or more of the same internal requests may be added to the external request, and each of them will be logged. If you want to filter only external requests without showing duplicates, then use the following query:
MySQL
Deployment and build logs in Kibana
Build logs
Build logs are only recorded in Kibana if the build failed.
Deployment logs
system.log in Kibana
exception.log in Kibana
cron.log in Kibana
Create database dump
Grant SSH access via the User Portal following the instructions.
Connect to the environment using created SSH access.
Create a database dump on the server:
Exit SSH.
Copy the database dump locally:
Replace the database with a database dump
Grant SSH access via the User Portal following the instructions.
Place database dump on the server by running:
Connect to the environment using created SSH access.
Replace the database with your dump file:
Copy media data from local to SSH container
You can only copy media to /home/magento
directory.
Copy media data from SSH container to local
Connect to MySQL database
Grant SSH access via the User Portal following the instructions.
Connect to the environment using created SSH access.
Connect to MySQL database:
View Magento reports stored in var/reports
Use the following command when connected to SSH to list all available reports:
Use the following command when connected to SSH to view the specific report:
Resolve stuck deployment
Identify the problem by checking deployment and build logs and try redeploying the instance following the instructions here.
Reindex commands
Grant SSH access via the User Portal following the instructions.
Connect to the environment using created SSH access.
Check reindexing status:
Perform reindex
Reset reindex
Files that are copied to ReadyMage during deployment
src/composer.json
src/composer.lock
src/app/
src/pub/.well-known
src/pub/google*.html
Content Security Policy control
Content security policies are controlled on Magento 2 application level.
Clear cache
Via Magento admin
System > Tools > Cache Management > Flush Cache Storage and Flush Magento Cache.
SSH
Cloudflare
Dashboard > Settings > Purge Cache
Resolve "The default website isn't defined"
ReadyMage requires having store views, stores, and website defined in the config.php file
The folder structure on the Magento server
Magento files are stored in /var/www/shared/public
and can be checked through SSH access.
Applying patches
Magento patches must be placed in src/patches
There should be no composer.patches.json
file. The indication of patches should be via "extra: patches" in composer.json
.
Last updated