2018-04-03 00:06:12 +00:00
|
|
|
.. _troubleshooting:
|
|
|
|
|
2018-04-02 13:47:41 +00:00
|
|
|
***************
|
|
|
|
Troubleshooting
|
|
|
|
***************
|
|
|
|
|
|
|
|
This section will contain common problems and how to resolve them.
|
|
|
|
It will grow over time once there are more issues reported.
|
|
|
|
|
2018-07-03 22:47:27 +00:00
|
|
|
.. seealso::
|
|
|
|
* :ref:`howto`
|
|
|
|
* :ref:`faq`
|
2018-04-03 00:06:12 +00:00
|
|
|
|
2018-07-06 07:30:52 +00:00
|
|
|
.. important::
|
|
|
|
|
|
|
|
:ref:`update_the_devilbox`
|
|
|
|
Issues are constantly being fixed. Before attempting to spend too much time digging into
|
|
|
|
your issue, make sure you are running the latest git changes and have pulled the latest
|
|
|
|
Docker images.
|
|
|
|
|
|
|
|
Also keep in mind that configuration files might change, so ensure to diff the default ones
|
|
|
|
against your currently active ones for added, removed or changed values.
|
|
|
|
|
2018-04-02 13:47:41 +00:00
|
|
|
|
|
|
|
**Table of Contents**
|
|
|
|
|
|
|
|
.. contents:: :local:
|
|
|
|
|
|
|
|
|
2018-07-03 22:47:27 +00:00
|
|
|
General
|
|
|
|
=======
|
|
|
|
|
|
|
|
Sudden unexplained problems on Windows
|
|
|
|
--------------------------------------
|
|
|
|
|
|
|
|
In case something stopped working for no reason, check out other Docker container. If you
|
|
|
|
experience similar issues as well, check for any unattended Windows updates or
|
|
|
|
updates to Docker itself. If those exist, try to revert them and see if that was the cause.
|
|
|
|
|
|
|
|
I heard many bug stories from fellow Windows users so far.
|
|
|
|
A good contact point for that is the Docker forum itself: https://forums.docker.com/c/docker-for-windows
|
|
|
|
|
|
|
|
Address already in use
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
One of the Docker container wants to bind to a port on the host system which is already taken.
|
|
|
|
Figure out what service is listening on your host system and shut it down or change the port
|
|
|
|
of the affected service in the Devilbox ``.env`` file.
|
|
|
|
|
2018-07-06 07:30:52 +00:00
|
|
|
Some examples of common error messages:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
|
|
|
|
|
|
|
|
|
2018-07-03 22:47:27 +00:00
|
|
|
Unable to finish Pulling as unauthorized: incorrect username or password
|
|
|
|
------------------------------------------------------------------------
|
|
|
|
|
|
|
|
This error might occur if you are already logged into a different Docker repository.
|
|
|
|
To fix this error, sign out of your currently logged in repository and try again.
|
|
|
|
|
|
|
|
.. seealso:: https://github.com/cytopia/devilbox/issues/223
|
|
|
|
|
|
|
|
|
|
|
|
localhost or 127.0.0.1 not found
|
|
|
|
--------------------------------
|
|
|
|
|
|
|
|
If you are using Docker Toolbox, the Devilbox intranet is not available on localhost or 127.0.0.1,
|
|
|
|
but rather on the IP address of the Docker Toolbox machine.
|
|
|
|
|
|
|
|
.. seealso:: :ref:`howto_find_docker_toolbox_ip_address`
|
|
|
|
|
|
|
|
|
|
|
|
ERROR: Version in "./docker-compose.yml" is unsupported
|
|
|
|
-------------------------------------------------------
|
|
|
|
|
|
|
|
This simply means your Docker and/or Docker Compose versions are outdated.
|
|
|
|
|
|
|
|
.. seealso:: :ref:`prerequisites`
|
|
|
|
|
|
|
|
DNS issues
|
|
|
|
==========
|
|
|
|
|
|
|
|
zone 'localhost': already exists previous definition
|
|
|
|
----------------------------------------------------
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
bind_1 | /etc/bind/devilbox-wildcard_dns.localhost.conf:1:
|
|
|
|
zone 'localhost': already exists previous definition:
|
|
|
|
/etc/bind/named.conf.default-zones:10
|
|
|
|
|
|
|
|
This error occurs when using ``localhost`` as the :ref:`env_tld_suffix`.
|
|
|
|
|
|
|
|
.. seealso::
|
|
|
|
|
|
|
|
* :ref:`env_tld_suffix`
|
|
|
|
* https://github.com/cytopia/devilbox/issues/291
|
|
|
|
|
|
|
|
|
|
|
|
Web server issues
|
|
|
|
=================
|
|
|
|
|
|
|
|
403 forbidden
|
|
|
|
-------------
|
|
|
|
|
|
|
|
This error might occur for the Devilbox intranet or custom created projects.
|
|
|
|
|
|
|
|
File and directory permissions
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
On of the cause could be wrongly set file and directory permissions.
|
|
|
|
|
|
|
|
First ensure the cloned git directory is readable for users, groups and others.
|
|
|
|
|
|
|
|
For the Devilbox intranet, ensure the ``.devilbox/`` directory is readable for users, groups and
|
|
|
|
others. Also check files and directories within.
|
|
|
|
|
|
|
|
For projects, ensure an ``index.php`` or ``index.html`` exists and that all files and directories
|
|
|
|
are readable for users, groups and others.
|
|
|
|
|
|
|
|
Shared volumes
|
|
|
|
^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
This might additionally occur on MacOS or Windows due to the Devilbox and/or its projects not
|
|
|
|
being in the standard location of Docker Shared volumes.
|
|
|
|
|
|
|
|
Check your Docker settings to allow shared volumes for the path of the Devilbox and its projects.
|
|
|
|
|
|
|
|
|
|
|
|
504 Gateway timeout
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
This error occurs when the upstream PHP-FPM server takes longer to execute a script,
|
|
|
|
than the timeout value set in the web server for PHP-FPM to answer.
|
|
|
|
|
|
|
|
For that to fix one must increase the PHP-FPM/Proxy timeout settings on the virtual host.
|
|
|
|
|
|
|
|
.. seealso::
|
|
|
|
|
|
|
|
* https://github.com/cytopia/devilbox/issues/280
|
|
|
|
* https://github.com/cytopia/devilbox/issues/234
|
|
|
|
|
|
|
|
|
|
|
|
Database issues
|
|
|
|
===============
|
|
|
|
|
2018-04-02 13:47:41 +00:00
|
|
|
Invalid bind mount spec
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
This error might occure after changing the path of MySQL, PgSQL, Mongo or any other data directory.
|
|
|
|
|
|
|
|
When you change any paths inside ``.env`` that affect Docker mountpoints, the container need to be
|
|
|
|
removed and re-created during the next startup.
|
|
|
|
Removing the container is sufficient as they will always be created during run if they don't exist.
|
|
|
|
|
|
|
|
In order to remove the container do the following:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-06-03 18:45:01 +00:00
|
|
|
host> cd path/to/devilbox
|
|
|
|
host> docker-compose stop
|
2018-04-02 13:47:41 +00:00
|
|
|
|
2018-06-03 18:45:01 +00:00
|
|
|
# Remove the stopped container (IMPORTANT!)
|
|
|
|
# After the removal it will be re-created during next run
|
|
|
|
host> docker-compose rm -f
|
2018-04-02 14:35:27 +00:00
|
|
|
|
|
|
|
.. seealso:: :ref:`remove_stopped_container`
|
2018-04-07 07:48:20 +00:00
|
|
|
|
|
|
|
[Warning] World-writable config file '/etc/mysql/docker-default.d/my.cnf' is ignored
|
|
|
|
------------------------------------------------------------------------------------
|
|
|
|
|
2018-07-03 22:47:27 +00:00
|
|
|
This warning might occur when using :ref:`howto_docker_toolbox_and_the_devilbox` on Windows and
|
|
|
|
trying to apply custom MySQL configuration files. This will also result in the configuration file
|
|
|
|
not being source by the MySQL server.
|
2018-04-07 07:48:20 +00:00
|
|
|
|
|
|
|
To fix this issue, you will have to change the file permission of your custom configuration files
|
|
|
|
to read-only by applying the following ``chmod`` command.
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-06-03 18:45:01 +00:00
|
|
|
# Nagivate to devilbox git directory
|
|
|
|
host> cd path/to/devilbox
|
2018-04-07 07:48:20 +00:00
|
|
|
|
2018-06-03 18:45:01 +00:00
|
|
|
# Navigate to the MySQL config directory (e.g.: MySQL 5.5)
|
|
|
|
host> cd cfg/mysql-5.5
|
2018-04-07 07:48:20 +00:00
|
|
|
|
2018-06-03 18:45:01 +00:00
|
|
|
# Make cnf files read only
|
|
|
|
host> chmod 0444 *.cnf
|
2018-04-07 07:48:20 +00:00
|
|
|
|
|
|
|
.. seealso::
|
2018-06-03 18:45:01 +00:00
|
|
|
* :ref:`my_cnf`
|
|
|
|
* https://github.com/cytopia/devilbox/issues/212
|