Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 844ba1a

Browse files
committed
Merge branch 'develop' of https://github.com/magento/devdocs_internal into dm_MG_Troubleshooting
2 parents 5ca4faa + 1335281 commit 844ba1a

File tree

7 files changed

+110
-38
lines changed

7 files changed

+110
-38
lines changed

_includes/navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<li class="first">
55
<a href="#">Setup and Deployment</a>
66
<ul class="menu nav">
7-
<li><a href="{{page.baseurl}}install-gde/docker/docker-over.html">DevBox Quick Installation (Beta)</a></li>
7+
<li><a href="https://magento.com/tech-resources/download" target="_blank">Get Started with Magento DevBox Beta</a></li>
88
<li><a href="{{page.baseurl}}install-gde/bk-install-guide.html">Installation Guide</a></li>
99
{% if page.guide_version == "2.2" %}
1010
<li class="leaf"><a href="{{page.baseurl}}comp-mgr/bk-compman-upgrade-guide.html">Extension Update and System Upgrade Guide</a></li>

guides/v2.0/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<h2 class="title">Setup and Deployment</h2>
1313
<ul>
1414
<li><a href="{{site.baseurl}}magento-system-requirements.html">System Requirements</a></li>
15-
<li><a href="{{page.baseurl}}install-gde/docker/docker-over.html">DevBox Quick Installation (Beta)</a></li>
15+
<li><a href="https://magento.com/tech-resources/download" target="_blank">Get Started with Magento DevBox Beta</a></li>
1616
<li><a href="{{page.baseurl}}install-gde/bk-install-guide.html">Installation Guide</a></li>
1717
<li><a href="{{page.baseurl}}config-guide/bk-config-guide.html">Configuration Guide</a></li>
1818
<li><a href="{{page.baseurl}}cloud/bk-cloud.html">Enterprise Cloud Edition Guide</a></li>

guides/v2.0/install-gde/docker/docker-commands.md

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,65 @@ github_link: install-gde/docker/docker-commands.md
1212

1313
This topic lists Docker commands you might find useful for day-to-day use or when troubleshooting issues. For more information, see the [Docker command reference](https://docs.docker.com/engine/reference/commandline){:target="_blank"}.
1414

15-
## Enable cron
16-
By default, cron isn't running in your Magento DevBox because cron consumes resources on your machine. Enabling cron also causes delays if you're running tests.
15+
## Run cron, populate the cache and the storefront
1716

18-
Enabling cron is necessary, however, to demonstrate how Magento works and to perform certain tasks. For a discussion of how Magento uses cron, see [Configure and use cron]({{ page.baseurl }}config-guide/cli/config-cli-subcommands-cron.html#config-cli-cron-overview).
17+
Populating the cache and storefront causes the storefront, products, and images to load faster. Use this option after you make changes to the product catalog to pre-deploy static assets and put objects in the cache so the storefront loads faster.
1918

20-
### Enable cron on a running system
21-
If DevBox is running, use the following command:
19+
You can also start the [Magento cron job]({{ page.baseurl }}config-guide/cli/config-cli-subcommands-cron.html#config-cli-cron-overview).
20+
21+
However, enabling these options consumes resources and might drain your battery.
22+
23+
{% collapsibleh3 Populate the storefront and cache and run cron (running system) %}
24+
25+
This section discusses how to populate the cache and storefront, and run cron, on a running DevBox system.
26+
27+
#### Start the Magento cron job and populate the cache
28+
Use the following command to both start the [Magento cron job]({{ page.baseurl }}config-guide/cli/config-cli-subcommands-cron.html#config-cli-cron-overview) and populate the cache and storefront:
2229

2330
docker-compose exec --user=magento2 web m2init magento:finalize --magento-warm-up-storefront=1 --magento-cron-run=1 --no-interaction
2431

25-
### Enable cron to run every time Magento starts
26-
To enable cron to run every time:
32+
#### Start the Magento cron job only
33+
Use the following command on a running system to only start the Magento cron job. This command might save resources and battery life on your laptop.
34+
35+
docker-compose exec --user=magento2 web m2init magento:finalize --magento-cron-run=1 --no-interaction
36+
37+
#### Populate the storefront and cache only
38+
Use the following command on a running system to only populate the storefront and cache but _not_ run the Magento cron job.
39+
40+
docker-compose exec --user=magento2 web m2init magento:finalize --magento-warm-up-storefront=1 --no-interaction
41+
42+
{% endcollapsibleh3 %}
43+
44+
{% collapsibleh3 Configure DevBox to always populate the storefront and cache and run cron %}
45+
46+
To populate the storefront and cache, and run cron to run every time Magento starts:
2747

2848
1. Stop all running containers.
2949

3050
docker-compose stop
3151
2. Open `<project root dir>/docker-compose.yml` in a text editor.
32-
3. Set the values of the following parameters to `1`:
52+
3. You have the following options:
53+
54+
* To enable cron to run only, set the value of the following parameter to `1`:
55+
56+
MAGENTO_CRON_RUN=1
57+
* To only populate the storefront and cache but _not_ run the Magento cron job, set the value of the following parameter to `1`:
58+
59+
MAGENTO_WARM_UP_STOREFRONT=1
60+
* To both enable the Magento cron job and to always populate the storefront and cache, set the values of both of the following parameters to `1`:
61+
62+
MAGENTO_CRON_RUN=1
63+
MAGENTO_WARM_UP_STOREFRONT=1
3364

34-
MAGENTO_CRON_RUN=1
35-
MAGENTO_WARM_UP_STOREFRONT=1
3665
4. Save your changes to `docker-compose.yml` and exit the text editor.
3766
5. Start all containers.
3867

3968
docker-compose start
40-
41-
## General purpose commands
4269

70+
{% endcollapsibleh3 %}
71+
72+
{% collapsibleh2 General purpose commands %}
73+
4374
| Description | Command |
4475
|--------------|--------------|
4576
| List all Magento containers | `docker-compose ps ` |
@@ -52,5 +83,6 @@ To enable cron to run every time:
5283
| Remove all Magento containers | `docker-compose kill` |
5384
| Run a bash shell in a container | `docker-compose exec --user=magento2 <service> /bin/bash` |
5485

55-
FIND IN COMPOSE.YAML
86+
{% endcollapsibleh2 %}
87+
5688

guides/v2.0/install-gde/docker/docker-ref.md

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This section discusses prerequisites you must complete before you install the Ma
3535
### Docker prerequisites
3636
Before you continue, make sure you install and configure the following:
3737

38-
* Mac OS<!-- and Windows -->: Install the [Docker software](https://www.docker.com/products/docker-toolbox){:target="_blank"}
38+
* Mac OS and Windows: Install the [Docker software](https://www.docker.com/products/docker-toolbox){:target="_blank"}
3939
* Windows 10 only:
4040

4141
* You must enable Hyper-V
@@ -48,8 +48,8 @@ Before you continue, make sure you install and configure the following:
4848
You cannot work with Docker, VirtualBox, or Vagrant simultaneously on Windows 10.
4949
</div>
5050

51-
#### Set up Docker file sharing
52-
For the Magento application to work, the application must be installed in a directory that Docker uses for file sharing.
51+
#### Set up Docker file sharing {#devbox-docker-file-share}
52+
For the Magento application to work, the application must be installed in a folder that Docker uses for file sharing.
5353

5454
**Windows**
5555

@@ -72,24 +72,39 @@ To set up Docker file sharing on the Mac OS:
7272
2. From the pop-up menu, click **Preferences**.
7373
3. In the Preferences dialog box, click the **File Sharing** tab.
7474

75-
This tab page displays all shared directories that Docker currently knows about. Make sure you install Magento in a directory listed on this tab page.
75+
This tab page displays all shared directories that Docker currently knows about. Make sure you install Magento in a folder listed on this tab page.
7676
5. To add additional directories, follow the prompts on your screen or consult Docker documentation.
7777

7878
{% endcollapsibleh2 %}
7979

80+
<p id="devbox-fileshare"></p>{% collapsibleh2 How DevBox uses file sharing %}
81+
82+
DevBox runs in a Docker container, which is also referred to as the _guest operating system_. The Magento files and folders are located on your _host operating system_ (Windows or Mac OS). To facilitate development, Magento files and directories are shared by the guest and host operating systems.
83+
84+
When you make a change to files, the changes are automatically synchronized, regardless of which files you change. (In other words, if you change files on the host operating system, those files are synchronized with the guest operating system and vice versa.)
85+
86+
Use the following guidelines:
87+
88+
* New Magento DevBox installations: Files are shared in the `shared/webroot` folder relative to your Magento installation root folder.
89+
90+
The Magento installation root folder is typically a subfolder of the folder in which you extracted the `.zip` file you download from Magento.
91+
* If you use an existing Magento installation with DevBox: Files are shared in the location to which you downloaded Magento.
92+
93+
{% endcollapsibleh2 %}
94+
8095
{% collapsibleh2 Magento authentication prerequisites %}
8196

8297
{% include install/auth-tokens-get.md %}
8398

8499
{% endcollapsibleh2 %}
85100

86-
<p id="devbox-download">{% collapsibleh2 How to download Magento code %}
101+
<p id="devbox-download"></p>{% collapsibleh2 How to download Magento code %}
87102

88103
This section applies to you if you use an existing Magento installation with DevBox. This means you first download the Magento software using either [Composer]({{ page.baseurl }}install-gde/prereq/integrator_install.html) or a [compressed archive]({{ page.baseurl }}install-gde/prereq/zip_install.html) but you don't _install_ the software.
89104

90105
Downloading a compressed archive has potential issues on the Mac OS, which extracts known compressed file types like `.zip` to a folder. The folder contains files that have to be copied in a particular way; otherwise, the Magento DevBox doesn't perform properly.
91106

92-
If you download a compressed archive on the Mac OS, you must make sure to copy _all_ of the Magento code to an empty folder. In particular, you must copy all Apache [distributed configuration files](http://httpd.apache.org/docs/current/howto/htaccess.html){:target="_blank"}, named `.htaccess`, to the folder. `.htaccess` files are located in several Magento directories, including in the root directory.
107+
If you download a compressed archive on the Mac OS, you must make sure to copy _all_ of the Magento code to an empty folder. In particular, you must copy all Apache [distributed configuration files](http://httpd.apache.org/docs/current/howto/htaccess.html){:target="_blank"}, named `.htaccess`, to the folder. `.htaccess` files are located in several Magento directories, including in the root folder.
93108

94109
Failure to copy `.htaccess` files causes the Magento application to function incorrectly because URL redirects won't work.
95110

@@ -99,7 +114,7 @@ When you download a file on the Mac OS, the file is usually located in the `/Use
99114
/Users/&lt;name>/Downloads/&lt;Magento folder name>
100115
</pre>
101116

102-
To make sure your existing Magento installation works it with DevBox, create an empty directory and copy all of the contents of the Magento compressed file to it as follows:
117+
To make sure your existing Magento installation works it with DevBox, create an empty folder and copy all of the contents of the Magento compressed file to it as follows:
103118

104119
<pre class="no-copy">
105120
mkdir -p &lt;path>
@@ -109,7 +124,7 @@ cp -r /Users/&lt;name>/Downloads/&lt;Magento folder name> &lt;path></pre>
109124
Don't use arguments like `/*` in the `cp` command because hidden files like `.htaccess` won't copy.
110125
</div>
111126

112-
For example, to copy Magento CE 2.1.3 code to a new directory named `/Users/me/Applications/Magento`, use the following commands:
127+
For example, to copy Magento CE 2.1.3 code to a new folder named `/Users/me/Applications/Magento`, use the following commands:
113128

114129
mkdir -p /Users/me/Applications/Magento
115130
cp -r /Users/me/Downloads/Magento-CE-2_1_3_zip-2016-12-16-06-04-03 /Users/me/Applications/Magento
@@ -236,6 +251,17 @@ To provide you more control over your Magento installation, we enable you to cho
236251

237252
{% endcollapsibleh2 %}
238253

254+
## After the DevBox wizard completes
255+
After you finish the DevBox wizard, you're prompted to download a `.zip` file to any folder on your system. When you extract the `.zip` file, your operating system might create another folder.
256+
257+
A Windows example follows:
258+
259+
C:\magento\build-18c4e4d3c5a541f37e9cffd35f1bf74e\build-18c4e4d3c5a541f37e9cffd35f1bf74e
260+
261+
In the preceding example, the user downloaded `build-18c4e4d3c5a541f37e9cffd35f1bf74e.zip` to the `C:\magento` folder. Extracting the `.zip` created a subfolder. The installation script you must run is located in the subfolder.
262+
239263
<div class="bs-callout bs-callout-info" markdown="1">
240-
When you run the installation script on Windows, an additional command window opens for Unison sync. Do not close the Unison sync window; otherwise, files you change won't be added to the Magento docroot.
264+
When you run the installation script on Windows, an additional command window opens for Unison sync. You don't normally need to interact with this command window.
265+
266+
Do not close the Unison sync window; otherwise, files you change won't be added to the Magento docroot.
241267
</div>

guides/v2.0/install-gde/docker/docker-trouble.md

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ github_link: install-gde/docker/docker-trouble.md
1212

1313
This topic discusses suggested solutions to issues you might counter when installing or using Magento DevBox.
1414

15-
## Problem: Cannot install the Magento application
15+
{% collapsibleh2 Problem: Cannot install Magento %}
1616

1717
The following error message might display:
1818

@@ -25,25 +25,33 @@ The preceding error means that the directory into which you're trying to install
2525

2626
In this case, delete everything from `Users/me/somepath`
2727

28-
Make sure all files, including all hidden files, are removed from that directory and try again.
28+
_Solution_: Make sure all files, including all hidden files, are removed from that directory and try again.
29+
30+
{% endcollapsibleh2 %}
31+
32+
{% collapsibleh2 Problem: Error displays in the Magento Admin %}
2933

30-
## Problem: Error displays in the Magento Admin
3134
After you log in to the Magento Admin, the following notification error might display:
3235

3336
Your web server is set up incorrectly and allows unauthorized access to sensitive files. Please contact your hosting provider.
3437

3538
This error results from the fact that the Magento application is running in developer mode. The message doesn't indicate any issues. You can ignore it and develop as normal.
3639

37-
## Problem: 404 error accessing the Magento Admin, storefront is accessible
40+
{% endcollapsibleh2 %}
41+
42+
{% collapsibleh2 Problem: 404 error accessing the Magento Admin, storefront is accessible %}
43+
3844
When you access the Magento Admin, the following error displays in the browser:
3945

4046
The requested URL /admin was not found on this server.
4147

4248
However, you can access the Magento storefront.
4349

44-
The most likely cause of this error is missing `.htaccess` files the Magento application uses for URL redirects and other things. To resolve this error, if you use the Mac OS, see [How to download Magento code]({{ page.baseurl }}install-gde/docker/docker-over.html#devbox-download)
50+
_Solution_: The most likely cause of this error is missing `.htaccess` files the Magento application uses for URL redirects and other things. To resolve this error, if you use the Mac OS, see [How to download Magento code]({{ page.baseurl }}install-gde/docker/docker-over.html#devbox-download)
51+
52+
{% endcollapsibleh2 %}
4553

46-
## Problem: Cannot access the Magento storefront or Admin
54+
{% collapsibleh2 Problem: Cannot access the Magento storefront or Admin %}
4755

4856
If you are having trouble accessing your Magento storefront and Magento Admin, connect to the web container and run some additional commands.
4957

@@ -61,8 +69,11 @@ If you are having trouble accessing your Magento storefront and Magento Admin, c
6169
php bin/magento setup:static-content:deploy
6270
5. When you're finished, enter `exit`.
6371

64-
## Problem: Errors display on Windows
65-
During installation errors similar to the following display in your primary command window:
72+
{% endcollapsibleh2 %}
73+
74+
{% collapsibleh2 Problem: Errors display on Windows %}
75+
76+
During installation, errors similar to the following display in your primary command window:
6677

6778
ERROR: for db Cannot create container for service db: C: drive is not shared. Please share it in Docker for Windows Settings
6879
ERROR: Encountered errors while bringing up the project.
@@ -73,9 +84,12 @@ Other errors might display in a secondary command window:
7384
Error response from daemon: No such container: magento2devbox_web_7f927cb82fd5dfc7d21b4d02387a0d12
7485
Error: No such container: magento2devbox_web_7f927cb82fd5dfc7d21b4d02387a0d12
7586

76-
*Solution*: [Set up file sharing]()
87+
*Solution*: [Set up file sharing]({{ page.baseurl }}install-gde/docker/docker-ref.html#devbox-docker-file-share).
88+
89+
{% endcollapsibleh2 %}
90+
91+
{% collapsibleh2 Problem: You want to start over %}
7792

78-
## Problem: You want to start over
7993
In the event you want to start over with a new Magento application installation, use the following steps from the directory to which you copied the DevBox scripts:
8094

8195
1. Kill the Magento Docker containers.
@@ -89,6 +103,6 @@ In the event you want to start over with a new Magento application installation,
89103

90104
* Windows
91105

92-
./m2devbox-init.bat
106+
m2devbox-init.bat
93107

94-
108+
{% endcollapsibleh2 %}

guides/v2.0/mtf/create_test/create_new_test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Create a test in the Functional Testing Framework
66
menu_title: New functional test. Practice
77
menu_order: 3
88
version: 2.0
9-
github_link: mtf/create_test/new_test.md
9+
github_link: mtf/create_test/create_new_test.md
1010
---
1111

1212
To demonstrate the usage of test components from previous sections in the test creation process, we will create a new functional [injectable test][] step-by-step. Before creating automated test, try to pass it manually.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<h2 class="title">Setup and Deployment</h2>
1414
<ul>
1515
<li><a href="{{ site.baseurl }}magento-system-requirements.html">System Requirements</a></li>
16-
<li><a href="{{page.baseurl}}install-gde/docker/docker-over.html">DevBox Quick Installation (Beta)</a></li>
16+
<li><a href="https://magento.com/tech-resources/download" target="_blank">Get Started with Magento DevBox Beta</a></li>
1717
<li><a href="{{page.baseurl}}install-gde/bk-install-guide.html">Installation Guide</a></li>
1818
<li><a href="{{page.baseurl}}config-guide/bk-config-guide.html">Configuration Guide</a></li>
1919
<li><a href="{{page.baseurl}}cloud/bk-cloud.html">Enterprise Cloud Edition Guide</a></li>

0 commit comments

Comments
 (0)