You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Codebase
mounted codebase (old website with Drupal 8 and Php 7.4)
Describe your issue
I have tried to follow documentation, but I don't understand how to set Php version to 7.4., I run into problems if I only edit the php version from docker-compose.yml like this:
php:
image: wodby/drupal-php:7.4
if you want to change php version you should update PHP_TAG in .env instead docker-compose.yml. The 7.4 version no longer supported so you will get the error with the latest stability tag, you should find the last tag that still had PHP 7.4 support https://github.com/wodby/php/tags. Also you should update nginx's vhost preset env var
Codebase
mounted codebase (old website with Drupal 8 and Php 7.4)
Describe your issue
I have tried to follow documentation, but I don't understand how to set Php version to 7.4., I run into problems if I only edit the php version from docker-compose.yml like this:
php:
image: wodby/drupal-php:7.4
Output of
docker info
version: "3.7"
services:
mariadb:
image: wodby/mariadb:$MARIADB_TAG
container_name: "${PROJECT_NAME}_mariadb"
stop_grace_period: 30s
environment:
MYSQL_ROOT_PASSWORD: $DB_ROOT_PASSWORD
MYSQL_DATABASE: $DB_NAME
MYSQL_USER: $DB_USER
MYSQL_PASSWORD: $DB_PASSWORD
php:
image: wodby/drupal-php:7.4
container_name: "${PROJECT_NAME}_php"
environment:
SSMTP_MAILHUB: mailhog:1025
PHP_SENDMAIL_PATH: '"/usr/bin/dos2unix -u | /usr/sbin/ssmtp -t -f"'
gpu","--headless"]}}, "http://chrome:9515"]'
volumes:
- ./:/var/www/html:cached
crond:
image: wodby/drupal-php:$PHP_TAG
container_name: "${PROJECT_NAME}_crond"
environment:
CRONTAB: "0 * * * * drush -r /var/www/html/web cron"
command: sudo -E crond -f -d 0
volumes:
- ./:/var/www/html:cached
nginx:
image: wodby/nginx:$NGINX_TAG
container_name: "${PROJECT_NAME}_nginx"
depends_on:
- php
environment:
NGINX_STATIC_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html/web
NGINX_VHOST_PRESET: $NGINX_VHOST_PRESET
volumes:
- ./:/var/www/html:cached
labels:
- "traefik.http.routers.${PROJECT_NAME}_nginx.rule=Host(
${PROJECT_BASE_URL}
)"mailhog:
image: mailhog/mailhog
container_name: "${PROJECT_NAME}_mailhog"
labels:
- "traefik.http.services.${PROJECT_NAME}_mailhog.loadbalancer.server.port=8025"
- "traefik.http.routers.${PROJECT_NAME}_mailhog.rule=Host(
mailhog.${PROJECT_BASE_URL}
)"traefik:
image: traefik:v2.0
container_name: "${PROJECT_NAME}_traefik"
command: --api.insecure=true --providers.docker
ports:
- "${PROJECT_PORT}:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
files:
PROJECT_NAME=my_drupal10_project
PROJECT_BASE_URL=drupal.docker.localhost
PROJECT_PORT=8000
DB_NAME=drupal
DB_USER=drupal
DB_PASSWORD=drupal
DB_ROOT_PASSWORD=password
DB_HOST=mariadb
DB_PORT=3306
DB_DRIVER=mysql
MARIADB_TAG=10.9-3.25.1
DRUPAL_TAG=10-4.54.1
PHP_TAG=8.2-dev-4.44.1
NGINX_TAG=1.25-5.32.0
NGINX_VHOST_PRESET=drupal9
SOLR_TAG=8-4.18.2
SOLR_CONFIG_SET="search_api_solr_4.1.6"
ELASTICSEARCH_TAG=7-5.18.8
KIBANA_TAG=7-5.18.8
REDIS_TAG=7-4.1.0
NODE_TAG=18-dev-1.22.0
VARNISH_TAG=6.0-4.14.0
POSTGRES_TAG=15-1.31.0
ADMINER_TAG=4-3.24.4
APACHE_TAG=2.4-4.12.0
ATHENAPDF_TAG=2.16.0
DRUPAL_NODE_TAG=1.0-2.0.0
MEMCACHED_TAG=1-2.15.0
OPENSMTPD_TAG=6-1.18.0
RSYSLOG_TAG=latest
SELENIUM_CHROME_TAG=3.141
WEBGRIND_TAG=1-1.30.0
XHPROF_TAG=3.7.6
ZOOKEEPER_TAG=3.8
my_drupal10_project_crond | [27-May-2023 09:07:29 UTC] PHP Fatal error: Declaration of Drush\Commands\DrushCommands::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void in /var/www/html/web/vendor/psr/log/Psr/Log/LoggerAwareTrait.php on line 22
my_drupal10_project_crond | make: *** [/usr/local/bin/actions.mk:6: init] Error 1
my_drupal10_project_nginx | nginx: [emerg] host not found in upstream "php:9000" in /etc/nginx/upstream.conf:2
my_drupal10_project_mariadb | 2023-05-27T09:07:29+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server started.
my_drupal10_project_mariadb | 2023-05-27T09:07:29+00:00 [Note] [Entrypoint]: Initializing database files
my_drupal10_project_mariadb | 2023-05-27 9:07:29 0 [Warning] 'innodb-force-load-corrupted' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
my_drupal10_project_traefik | time="2023-05-27T09:07:29Z" level=info msg="Configuration loaded from flags."
my_drupal10_project_mailhog | 2023/05/27 09:07:28 Using in-memory storage
my_drupal10_project_mailhog | 2023/05/27 09:07:28 [SMTP] Binding to address: 0.0.0.0:1025
my_drupal10_project_mariadb |
my_drupal10_project_mailhog | 2023/05/27 09:07:28 Serving under http://0.0.0.0:8025/
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
my_drupal10_project_mariadb | To do so, start the server, then issue the following command:
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | '/usr/bin/mariadb-secure-installation'
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | which will also give you the option of removing the test
my_drupal10_project_mariadb | databases and anonymous user created by default. This is
my_drupal10_project_mariadb | strongly recommended for production servers.
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | See the MariaDB Knowledgebase at https://mariadb.com/kb
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | Please report any problems at https://mariadb.org/jira
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | The latest information about MariaDB is available at https://mariadb.org/.
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | Consider joining MariaDB's strong and vibrant community:
my_drupal10_project_mariadb | https://mariadb.org/get-involved/
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | 2023-05-27T09:07:31+00:00 [Note] [Entrypoint]: Database files initialized
my_drupal10_project_mariadb | 2023-05-27T09:07:31+00:00 [Note] [Entrypoint]: Starting temporary server
my_drupal10_project_mariadb | 2023-05-27T09:07:31+00:00 [Note] [Entrypoint]: Waiting for server startup
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] Starting MariaDB 10.9.6-MariaDB source revision 34762401297a98114cac7c02f664f52ccf20f809 as process 98
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
my_drupal10_project_mailhog | [HTTP] Binding to address: 0.0.0.0:8025
my_drupal10_project_mailhog | Creating API v1 with WebPath:
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: Number of transaction pools: 1
my_drupal10_project_php | [27-May-2023 09:07:29 UTC] PHP Fatal error: Declaration of Drush\Commands\DrushCommands::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void in /var/www/html/web/vendor/psr/log/Psr/Log/LoggerAwareTrait.php on line 22
my_drupal10_project_php | make: *** [/usr/local/bin/actions.mk:6: init] Error 1
my_drupal10_project_mailhog | Creating API v2 with WebPath:
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: Using Linux native AIO
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: Completed initialization of buffer pool
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: 128 rollback segments are active.
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: log sequence number 46590; transaction id 14
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] Plugin 'FEEDBACK' is disabled.
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Warning] 'innodb-force-load-corrupted' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] InnoDB: Buffer pool(s) load completed at 230527 9:07:31
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Warning] 'user' entry 'root@01bc28e9f665' ignored in --skip-name-resolve mode.
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Warning] 'proxies_priv' entry '@% root@01bc28e9f665' ignored in --skip-name-resolve mode.
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mariadb | 2023-05-27 9:07:31 0 [Note] mysqld: ready for connections.
my_drupal10_project_mariadb | Version: '10.9.6-MariaDB' socket: '/var/run/mysqld/mysqld.sock' port: 0 MariaDB Server
my_drupal10_project_mariadb | 2023-05-27T09:07:32+00:00 [Note] [Entrypoint]: Temporary server started.
my_drupal10_project_mariadb | 2023-05-27 9:07:34 5 [Warning] 'proxies_priv' entry '@% root@01bc28e9f665' ignored in --skip-name-resolve mode.
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mariadb | 2023-05-27T09:07:34+00:00 [Note] [Entrypoint]: Creating database drupal
my_drupal10_project_mariadb | 2023-05-27T09:07:34+00:00 [Note] [Entrypoint]: Creating user drupal
my_drupal10_project_mariadb | 2023-05-27T09:07:34+00:00 [Note] [Entrypoint]: Giving user drupal access to schema drupal
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | 2023-05-27T09:07:34+00:00 [Note] [Entrypoint]: Stopping temporary server
my_drupal10_project_mariadb | 2023-05-27 9:07:34 0 [Note] mysqld (initiated by: root[root] @ localhost []): Normal shutdown
my_drupal10_project_mariadb | 2023-05-27 9:07:34 0 [Note] InnoDB: FTS optimize thread exiting.
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mariadb | 2023-05-27 9:07:34 0 [Note] InnoDB: Starting shutdown...
my_drupal10_project_mariadb | 2023-05-27 9:07:34 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
my_drupal10_project_mariadb | 2023-05-27 9:07:34 0 [Note] InnoDB: Buffer pool(s) dump completed at 230527 9:07:34
my_drupal10_project_mariadb | 2023-05-27 9:07:34 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
my_drupal10_project_mariadb | 2023-05-27 9:07:34 0 [Note] InnoDB: Shutdown completed; log sequence number 46590; transaction id 15
my_drupal10_project_mariadb | 2023-05-27 9:07:34 0 [Note] mysqld: Shutdown complete
my_drupal10_project_mariadb |
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mariadb | 2023-05-27T09:07:35+00:00 [Note] [Entrypoint]: Temporary server stopped
my_drupal10_project_mariadb |
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mailhog | [APIv1] KEEPALIVE /api/v1/events
my_drupal10_project_mariadb | 2023-05-27T09:07:35+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
my_drupal10_project_mariadb |
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] Starting MariaDB 10.9.6-MariaDB source revision 34762401297a98114cac7c02f664f52ccf20f809 as process 1
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: Compressed tables use zlib 1.2.13
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: Number of transaction pools: 1
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts)
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: Using Linux native AIO
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: Completed initialization of buffer pool
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: File system buffers for log disabled (block size=4096 bytes)
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: 128 rollback segments are active.
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: log sequence number 46590; transaction id 14
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] Plugin 'FEEDBACK' is disabled.
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Warning] 'innodb-force-load-corrupted' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] Server socket created on IP: '0.0.0.0'.
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] InnoDB: Buffer pool(s) load completed at 230527 9:07:35
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Warning] 'proxies_priv' entry '@% root@01bc28e9f665' ignored in --skip-name-resolve mode.
my_drupal10_project_mariadb | 2023-05-27 9:07:35 0 [Note] mysqld: ready for connections.
my_drupal10_project_mariadb | Version: '10.9.6-MariaDB' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MariaDB Server
my_drupal10_project_mariadb | 2023-05-27 10:12:56 0 [Note] mysqld (initiated by: unknown): Normal shutdown
my_drupal10_project_mariadb | 2023-05-27 10:12:56 0 [Note] InnoDB: FTS optimize thread exiting.
my_drupal10_project_mariadb | 2023-05-27 10:12:56 0 [Note] InnoDB: Starting shutdown...
my_drupal10_project_mariadb | 2023-05-27 10:12:56 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
my_drupal10_project_mariadb | 2023-05-27 10:12:56 0 [Note] InnoDB: Buffer pool(s) dump completed at 230527 10:12:56
my_drupal10_project_mariadb | 2023-05-27 10:12:57 0 [Note] InnoDB: Removed temporary tablespace data file: "./ibtmp1"
my_drupal10_project_mariadb | 2023-05-27 10:12:57 0 [Note] InnoDB: Shutdown completed; log sequence number 47014; transaction id 15
my_drupal10_project_mariadb | 2023-05-27 10:12:57 0 [Note] mysqld: Shutdown complete
my_drupal10_project_mariadb |```
The text was updated successfully, but these errors were encountered: