ReadyMage Help
  • ReadyMage
  • USER PORTAL
    • User Portal Access
    • Change Password
    • Two-Factor Authentication
  • Project Management
    • Project List
    • Project Settings
      • General Info
      • Git Management
      • Environments
      • Members and roles
      • Security
        • Deletion Protection
        • TFA Enforcement
      • Delete Project
  • Application Management
    • Magento Details
    • Domain Management
    • Logs & Monitoring
    • Backups
      • Backup process
      • Disaster recovery process
    • Deployments
      • Deploy without build cache
      • Queue Tab (Launching soon)
      • Settings Tab (Launching soon)
        • Automatic Deployments
        • ReadyMage Maintenance Page
          • Website Access During Maintenance
      • Notifications Tab (Launching soon)
        • Managing email notifications
        • Managing Slack notifications
      • Pipeline Deployments
      • Pipeline Configuration file
        • Migration guide from 0.x.x to 1.0.0
    • SSH Access
      • SSH Usage
      • Database Access using Graphical Interface
      • Troubleshooting
    • IP Whitelist
    • Password Authentication
    • Database & Media
    • Search Engine Bots Discovery
  • Service Management
    • Server-Side Rendering
    • SFTP
    • NewRelic
    • Packagist Modules
    • Cloudflare
  • Infrastructure Management
    • Autoscale
    • Sleep Mode
    • Manage Services
    • Historical Resource Usage
  • PROJECT DEVELOPMENT
    • Node.js version
    • Store access
    • Creating a Production Environment
    • Additional Environments
    • ScandiPWA, PWA Studio, Hyva, or Luma
    • Project Migration to ReadyMage
    • SSH Access for Magento CLI, database and media
    • Code customization and local setup
    • Extension installation
    • Add translations (switch locale)
    • Existing ScandiPWA Project Code Migration
    • Database and media migration
    • Redirect setup
    • Connect CDN and WebP optimization
    • Email setup
    • Changing the Domain & Multi-Store Set up
    • Internal service addresses
    • Kibana filters and useful CLI commands
    • Persistent directories
  • FAQ
    • General
    • Autoscaling
    • Billing
    • User Portal Options
    • Services connected to ReadyMage
    • Hosting, managing resources and autoscaling
    • Source Code Management
    • ScandiPWA and Magento Versions, Commerce Edition and Upgrades
    • Supported software versions
Powered by GitBook
On this page
  • Service logs available in Kibana and their filter queries
  • Cron
  • ElasticSearch
  • Application
  • Redis
  • Nginx
  • MySQL
  • Deployment and build logs in Kibana
  • Build logs
  • Deployment logs
  • system.log in Kibana
  • exception.log in Kibana
  • cron.log in Kibana
  • Create database dump
  • Replace the database with a database dump
  • Copy media data from local to SSH container
  • Copy media data from SSH container to local
  • Connect to MySQL database
  • View Magento reports stored in var/reports
  • Resolve stuck deployment
  • Reindex commands
  • Files that are copied to ReadyMage during deployment
  • Content Security Policy control
  • Clear cache
  • Via Magento admin
  • SSH
  • Cloudflare
  • Resolve "The default website isn't defined"
  • The folder structure on the Magento server
  • Applying patches

Was this helpful?

  1. PROJECT DEVELOPMENT

Kibana filters and useful CLI commands

Service logs available in Kibana and their filter queries

Cron

*.container.name : "cron"

ElasticSearch

*.container.name : "elasticsearch"

Application

*.container.name : "app-fe"
*.container.name : "app-be"

Redis

*.container.name : "redis"

Nginx

*.container.name : "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:

*.container.name : nginx and server_port: 80

MySQL

*.container.name : "mysql"

Deployment and build logs in Kibana

Build logs

Build logs are only recorded in Kibana if the build failed.

*.container.name : "build"

Deployment logs

*.container.name : "app-updater"

system.log in Kibana

(*.container.name : "app" or *.container.name : "cron") and (message : "main.ERROR" or message: "main.NOTICE" or message: "main.INFO" or message: "main.DEBUG") 

exception.log in Kibana

(*.container.name.keyword : "app" or *.container.name : "cron") and message: "main.CRITICAL" 

cron.log in Kibana

*.container.name.keyword : "cron"

Create database dump

  1. Connect to the environment using created SSH access.

  2. Create a database dump on the server:

    mysqldump magento --single-transaction --no-tablespaces | zip dump.sql.gz -
  3. Exit SSH.

  4. Copy the database dump locally:

    scp {ssh_user}@ssh.readymage.com:/home/magento/dump.sql.gz .

Replace the database with a database dump

  1. Place database dump on the server by running:

    scp {local_path_to_db} {ssh_user}@ssh.readymage.com:/home/magento/dump.sql
  2. Connect to the environment using created SSH access.

  3. Replace the database with your dump file:

    mysql magento < dump.sql

Copy media data from local to SSH container

You can only copy media to /home/magento directory.

rsync -azP media/ your-user@ssh.readymage.com:/home/magento/media/

Copy media data from SSH container to local

rsync -azP your-user@ssh.readymage.com:/home/magento/media/

Connect to MySQL database

  1. Connect to the environment using created SSH access.

  2. Connect to MySQL database:

    SSH - "mysql"

View Magento reports stored in var/reports

Use the following command when connected to SSH to list all available reports:

ls -l var/report/

Use the following command when connected to SSH to view the specific report:

cat var/report/{report_name}

Resolve stuck deployment

Reindex commands

  1. Connect to the environment using created SSH access.

  2. Check reindexing status:

    php bin/magento indexer:info
    php bin/magento indexer:status
  3. Perform reindex

    php bin/magento indexer:reindex
  4. Reset reindex

    php bin/magento indexer:reset

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

php bin/magento c:f

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/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.

PreviousInternal service addressesNextPersistent directories

Last updated 1 month ago

Was this helpful?

Grant SSH access via the User Portal following .

Grant SSH access via the User Portal following .

Grant SSH access via the User Portal following .

Identify the problem by checking deployment and build logs and try redeploying the instance following the instructions .

Grant SSH access via the User Portal following .

the instructions
the instructions
the instructions
here
the instructions