Skip to main content
12 votes

Magento 2 Commerce Cloud accessing DB

If your goal is to access it using some type of GUI client, you could accomplish this by opening an ssh tunnel using the magento-cloud utility, similar to the above answer: magento-cloud tunnel:open -...
Billy Gilbert's user avatar
11 votes
Accepted

Magento 2: How to dump database from Magento cloud

Install magento-cloud cli https://devdocs.magento.com/cloud/reference/cli-ref-topic.html Get a project and environment with the magento-cloud cli Run command to go into the current environment, ...
Carlos Reynosa's user avatar
7 votes
Accepted

Where can I find credentials for `magento-cloud auth:api-token-login`

Apparently it can be found here: https://accounts.magento.cloud/ login with Magento/Adobe account (or request password when it is the first time) Then navigate Tab "Account settings" > ...
Akif's user avatar
  • 1,551
6 votes
Accepted

How to commit & push Magento's vendor directory file in Magento Cloud?

Changing file(s) in vendor directly is not a best practice. It's better if you create a patch for the changes, and apply the patch in your Magento Cloud. To better understanding on how to create and ...
Rendy Eko Prastiyo's user avatar
4 votes

Magento 2 cloud: Copy file via ssh (locally)

Use magento-cloud scp tool: magento-cloud scp remote:var/log/fileToCopy . For more information magento-cloud scp --help
Freddy Vielma's user avatar
4 votes
Accepted

How to install Magento Cloud CLI?

1 - You can install it using this command below. curl -sS https://accounts.magento.cloud/cli/installer | php 2 - Then add the Magento Cloud CLI to the bash profile. export PATH=$PATH:$HOME/.magento-...
Rafael Corrêa Gomes's user avatar
3 votes
Accepted

Magento cloud ssh denied for db:dump

Finally, after trying a redeployment on master, SSH now works perfectly ! To trigger a new production deployment, you simply have to merge any code or empty commit (git commit --allow-empty -m "...
Kevin Thomas's user avatar
3 votes

Magento 2 Commerce cloud : How to monitor/confirm that the results are served from elastic search?

I think you should using magento-cloud ssh and ssh to Magento Cloud Node such as production, staging Using CURL to check Elasticsearch result Elastic search document << here, example: I want ...
HoangHieu's user avatar
  • 1,358
3 votes

Magento cloud hosted M2 EE site compromised and got malware attack

you must have some monitoring enabled. you can use all these tools, or some of them, configure some options and settings. csf firewall fast software firewall with easy to use config + cli: https://...
MagenX's user avatar
  • 3,813
3 votes
Accepted

How to modify 503 file in magento 2 cloud Enterprise edition?

Magento 2 Enterprise Cloud comes with 3 envoirnments setup by detault Integration , Staging and Production. In integration environment you only have 2 caching option available Bulit-in and Varnish, ...
Naveed Asim's user avatar
  • 3,657
3 votes

Magento Cloud stuck on Building after Re-deploying environment

If you can SSH into the machine, use vendor/bin/ece-tools cron:kill If that produces an error or doesn't resolve the issue, then creating a ticket is the best way. Usually picked up and resolved ...
Shapeshifter's user avatar
3 votes

setup upgrade in integration after deployment(Magento2 cloud)

In Magento Cloud its run automatically like Yigen said, but sometimes is delay after deploy. So if you want to update database now just run this command on server. Its same like in: vendor/magento/...
BartZalas's user avatar
  • 1,757
3 votes

Magento 2 Commerce Cloud accessing DB

Try: SSH to the Integration environment. magento-cloud ssh Connect to the database. mysql -h <db-host> -P <db-port> -p -u <db-user> <db-name>
Saphal Jha's user avatar
  • 1,883
3 votes

Create programmatically a product attribute editable with Page Builder

It seems the addAttribute method does not install this pagebuilder property. The solution for me was to add the attribute and then immediatly run the updateAttribute method as defined by @Dave $...
Dennis Kopitz's user avatar
3 votes

Magento 2 Commerce Cloud accessing DB

If you using intellij do the following: Open a tunnel to your required environment: magento-cloud tunnel:open -e integration You should see similar output to the below: SSH tunnel opened to ...
Jiyaad.D's user avatar
  • 448
3 votes
Accepted

How to setup Magento Cloud + Bitbucket?

First of all, you don't need to integrate Bitbucket Pipelines as you do with your own host provider. You can use the native integration between Magento Cloud and Github, Bitbucket, or Gitlab. How to ...
Rafael Corrêa Gomes's user avatar
3 votes
Accepted

Magento Cloud CLI cURL error 60: SSL certificate problem: certificate has expired

This occurs when the SSL certificate is not properly configured. Try following these steps: cacert.pem from the official cURL website Put this cacert.pem file in the directory (SSL folder) where you ...
Muhammad Bilal Yaseen's user avatar
2 votes

Magento 2 Commerce Cloud accessing DB

You can also use the ece-tools package for taking a db dump: /vendor/bin/ece-tools‌ db-dump
abhilashv's user avatar
  • 161
2 votes

Is SCD_ON_DEMAND variable available for Magento 2 Open source version?

Currently, you can add the next code to env.php file only manually: return [ ... 'static_content_on_demand_in_production' => 1, ... ];
BaDos's user avatar
  • 131
2 votes

Magento Cloud stuck on Building after Re-deploying environment

1 - Access the instance that's stuck. magento-cloud ssh -e development 2 - Find the background service running the deployment as in the image below. ps -aux kill 2861 3 - If you have many deployment ...
Rafael Corrêa Gomes's user avatar
2 votes

Magento cloud hosted M2 EE site compromised and got malware attack

Most Magento 2 stores get hacked via Adminer or the March '19 SQL injection flaw. A smaller portion get breached via insecure extensions, brute force password guessing or spearphishing attacks against ...
Willem's user avatar
  • 1,488
2 votes
Accepted

Magento 2 Commerce cloud database export

As MSA has noted, you can ssh into the machine and use ece-tools db-dump and then rsync the database dump down locally.Here is the rsync command rsync -avzh <SSH URL>:/tmp/<BACKUP NAME> ....
Billy Gilbert's user avatar
2 votes

Magento 2 Cloud version upgrade issue

Understanding Package Management First off, any answers that suggest removing or editing the composer.lock file directly are wrong. Deleting composer.lock and regenerating will effectively upgrade ...
Jeremy Dennen's user avatar
2 votes

Magento 2: How to dump database from Magento cloud

ece-tools is available in magneto 2 . You can just refer link https://devdocs.magento.com/cloud/reference/ece-tools-reference.html
Manish Chaubey's user avatar
2 votes

Magento 2: How to dump database from Magento cloud

just install magento cloud cli and then magento-cloud db:dump
Dexture's user avatar
  • 125
2 votes
Accepted

Magento 2 Enterprise Schedule Update Programatically

You can use the below code it worked for me. I used it on the Console commad as it will run in a cron job. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $state = $objectManager-...
Riddhish Bhayani's user avatar
2 votes

upgrade cloud enterprise edition with specific steps

You can check the following steps: Step 1: Take the DB backup. For doing this, you need to login Magento cloud server and run the following command: vendor/bin/ece-tools db-dump Step 2: Run the ...
Sohel Rana's user avatar
  • 35.9k
2 votes

Deployment error when upgrade Magento cloud 2.4.4 to php8.1

It seems that your composer.lock used Composer v2 (composer-plugin-api) inside it. You might want to update your .magento.app.yaml and switch to using Composer v2, by default Magento Cloud will use ...
Toan Nguyen's user avatar
  • 3,059
2 votes

magento2 cloud composer.lock file not updated

you should update your dependencies. try this code composer update If you want to update specific package check this composer update magento/inventory-composer-metapackage
Ansari's user avatar
  • 437
1 vote

Checking Nginx log on Docker local environment on Cloud version?

502 error nginx upstream not available. you need to check nginx proxy / php block in configuration. nginx php upstream wrong port defined, socket permissions, upstream not running, firewall blocking,...
MagenX's user avatar
  • 3,813

Only top scored, non community-wiki answers of a minimum length are eligible