SQLSTATE[HY000] [2002] No such file or directory

Hallo,

Ich versuche seit gestern Shopware mit Hilfe von Docker einzurichten. Leider stoße ich bei jeder Respository auf andere Probleme, die allerdings meistens mit mysql zu tun haben. Da ich ganz neu in dem Bereich bin und Google mir nicht weiterhelfen konnte, möchte ich euch um Hilfe bitten.

Bei dem Shopware-Installer tritt der Fehler "SQLSTATE[HY000] [2002] No such file or directory " auf. (pmagentur git)

  • .env

    MYSQL_VERSION=5.7.20

    DOCKER_IMAGE=pmphillip/pm-shopware-php-nginx:php-7.1

    MYSQL_USER_LOCAL=shopware
    MYSQL_PASSWORD_LOCAL=shopware
    MYSQL_DB_NAME_LOCAL=shopware
    MYSQL_HOST_LOCAL=mysql
    MYSQL_ROOT_PASSWORD_LOCAL=root

    TIMEZONE_LOCAL=Europe/Berlin

    DOCKER_CONTAINER_NAME_LOCAL_DB=pm-main-mysql_1
    DOCKER_CONTAINER_NAME_LOCAL_WEB=pm-main-web_1

    DOCKER_VERSION=2

  • docker-compose.yml

    version: ‚2‘

    networks:
    backend:

    volumes:
    database: {}

    services:
    web:
    image: {DOCKER_IMAGE} container_name: {DOCKER_CONTAINER_NAME_LOCAL_WEB}
    ports:
    - „80:80“
    volumes:
    - ./public:/var/www/html
    environment:
    - MYSQL_DATABASE={MYSQL_DB_NAME_LOCAL} - MYSQL_USER={MYSQL_USER_LOCAL}
    - MYSQL_PASSWORD={MYSQL_PASSWORD_LOCAL} - MYSQL_HOST={MYSQL_HOST_LOCAL}
    networks:
    - backend

    mysql:
      image: mysql:${MYSQL_VERSION}
      container_name: ${DOCKER_CONTAINER_NAME_LOCAL_DB}
      volumes:
        - database:/var/lib/mysql
      expose:
        - 3306
      environment:
        - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD_LOCAL}
        - MYSQL_DATABASE=${MYSQL_DB_NAME_LOCAL}
        - MYSQL_USER=${MYSQL_USER_LOCAL}
        - MYSQL_PASSWORD=${MYSQL_PASSWORD_LOCAL}
      networks:
        - backend
    
    phpmyadmin:
      image: phpmyadmin/phpmyadmin
      environment:
        PMA_ARBITRARY: 1
        PMA_HOSTS: ${MYSQL_HOST_LOCAL}
        PMA_USER: ${MYSQL_USER_LOCAL}
        PMA_PASSWORD: ${MYSQL_PASSWORD_LOCAL}
        TZ: ${TIMEZONE_LOCAL}
      expose:
        - 80
      ports:
        - "8083:80"
      networks:
    
    • backend

 

Ist jemand von euch auf das selbe Problem gestoßen oder hat eine Idee woran es liegen könnte?

 

 

shopware5_mailhog_1 | [HTTP] Binding to address: 0.0.0.0:8025
shopware5_mailhog_1 | Creating API v1 with WebPath:
shopware5_mailhog_1 | Creating API v2 with WebPath:
shopware5_mailhog_1 | 2019/06/18 10:56:04 Using in-memory storage
shopware5_mailhog_1 | 2019/06/18 10:56:04 [SMTP] Binding to address: 0.0.0.0:1025
shopware5_mailhog_1 | 2019/06/18 10:56:04 Serving under http://0.0.0.0:8025/
shopware5_phpmyadmin_1 | phpMyAdmin not found in /var/www/html - copying now...
shopware5_phpmyadmin_1 | Complete! phpMyAdmin has been successfully copied to /var/www/html
shopware5_phpmyadmin_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.24.0.4. Set the 'ServerName' directive globally to suppress this message
shopware5_phpmyadmin_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.24.0.4. Set the 'ServerName' directive globally to suppress this message
shopware5_phpmyadmin_1 | [Tue Jun 18 10:56:07.281960 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.2.19 configured -- resuming normal operations
shopware5_phpmyadmin_1 | [Tue Jun 18 10:56:07.282054 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
shopware5_mysql_1 | 2019-06-18T10:56:06.090373Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
shopware5_mysql_1 | 2019-06-18T10:56:06.098136Z 0 [Note] mysqld (mysqld 5.7.26) starting as process 1 ...
shopware5_mysql_1 | 2019-06-18T10:56:06.130317Z 0 [Note] InnoDB: PUNCH HOLE support available
shopware5_mysql_1 | 2019-06-18T10:56:06.130380Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
shopware5_mysql_1 | 2019-06-18T10:56:06.130390Z 0 [Note] InnoDB: Uses event mutexes
shopware5_mysql_1 | 2019-06-18T10:56:06.130398Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
shopware5_mysql_1 | 2019-06-18T10:56:06.130407Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
shopware5_mysql_1 | 2019-06-18T10:56:06.130416Z 0 [Note] InnoDB: Using Linux native AIO
shopware5_mysql_1 | 2019-06-18T10:56:06.130849Z 0 [Note] InnoDB: Number of pools: 1
shopware5_mysql_1 | 2019-06-18T10:56:06.131043Z 0 [Note] InnoDB: Using CPU crc32 instructions
shopware5_mysql_1 | 2019-06-18T10:56:06.134614Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
shopware5_mysql_1 | 2019-06-18T10:56:06.175140Z 0 [Note] InnoDB: Completed initialization of buffer pool
shopware5_mysql_1 | 2019-06-18T10:56:06.177672Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
shopware5_mysql_1 | 2019-06-18T10:56:06.522974Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
shopware5_mysql_1 | 2019-06-18T10:56:06.722382Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
shopware5_mysql_1 | 2019-06-18T10:56:06.724872Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
shopware5_mysql_1 | 2019-06-18T10:56:07.220485Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
shopware5_mysql_1 | 2019-06-18T10:56:07.234576Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
shopware5_mysql_1 | 2019-06-18T10:56:07.234912Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
shopware5_mysql_1 | 2019-06-18T10:56:07.235511Z 0 [Note] InnoDB: Waiting for purge to start
shopware5_mysql_1 | 2019-06-18T10:56:07.287760Z 0 [Note] InnoDB: 5.7.26 started; log sequence number 12365035
shopware5_mysql_1 | 2019-06-18T10:56:07.288485Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
shopware5_mysql_1 | 2019-06-18T10:56:07.294243Z 0 [Note] Plugin 'FEDERATED' is disabled.
shopware5_mysql_1 | 2019-06-18T10:56:07.387292Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
shopware5_mysql_1 | 2019-06-18T10:56:07.456889Z 0 [Warning] CA certificate ca.pem is self signed.
shopware5_mysql_1 | 2019-06-18T10:56:07.463231Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
shopware5_mysql_1 | 2019-06-18T10:56:07.463276Z 0 [Note] IPv6 is available.
shopware5_mysql_1 | 2019-06-18T10:56:07.463289Z 0 [Note] - '::' resolves to '::';
shopware5_mysql_1 | 2019-06-18T10:56:07.463303Z 0 [Note] Server socket created on IP: '::'.
shopware5_mysql_1 | 2019-06-18T10:56:07.484946Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190618 10:56:07
shopware5_mysql_1 | 2019-06-18T10:56:07.507468Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
shopware5_mysql_1 | 2019-06-18T10:56:08.029700Z 0 [Note] Event Scheduler: Loaded 0 events
shopware5_mysql_1 | 2019-06-18T10:56:08.030652Z 0 [Note] mysqld: ready for connections.
shopware5_mysql_1 | Version: '5.7.26' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
shopware5_web_1 | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.24.0.5. Set the 'ServerName' directive globally to suppress this message

Das passiert bei der proudcommerce Respo, am Ende bekomme ich aber diese Fehlermeldung auf der „localhost“ Seite:

Warning: require(/var/www/html/app/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/app/autoload.php on line 10

Warning: require(/var/www/html/app/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/app/autoload.php on line 10

Fatal error: require(): Failed opening required '/var/www/html/app/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/app/autoload.php on line 10

Bei beiden Respos komme ich jetzt keinen Schritt weiter, bitte um Rettung