Closed julyusito closed 3 years ago
Did you use docker-compose down or stop? If you stop them you'll have to remove the containers with docker-compose rm.
Hi,
This is the error when upgrade the container:
cd /usr/local/share/groupoffice/ php cli.php core/System/upgrade
Error in /usr/local/share/groupoffice/go/core/db/Connection.php at line 50: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' at 2022-03-31T22:01:53+00:00
php -i | grep pdo
Configure Command => './configure' '--build=x86_64-linux-gnu' '--with-config-file-path=/usr/local/etc/php' '--with-config-file-scan-dir=/usr/local/etc/php/conf.d' '--enable-option-checking=fatal' '--with-mhash' '--with-pic' '--enable-ftp' '--enable-mbstring' '--enable-mysqlnd' '--with-password-argon2' '--with-sodium=shared' '--with-pdo-sqlite=/usr' '--with-sqlite3=/usr' '--with-curl' '--with-openssl' '--with-readline' '--with-zlib' '--with-pear' '--with-libdir=lib/x86_64-linux-gnu' '--with-apxs2' '--disable-cgi' 'build_alias=x86_64-linux-gnu' /usr/local/etc/php/conf.d/docker-php-ext-pdo_mysql.ini, API Extensions => mysqli,pdo_mysql pdo_mysql pdo_mysql.default_socket => no value => no value pdo_sqlite
php -i|grep PDO
PDO PDO support => enabled PDO drivers => sqlite, mysql PDO Driver for MySQL => enabled PDO Driver for SQLite 3.x => enabled
Like root: root@goprod:/var/www/html# php -m [PHP Modules] apcu bcmath calendar Core ctype curl date dom fileinfo filter ftp gd hash iconv intl ionCube Loader json ldap libxml mbstring memcached mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline Reflection session SimpleXML soap sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter Zend OPcache zip zlib
[Zend Modules] Zend OPcache the ionCube PHP Loader + ionCube24
Like www-data there is no pdo_mysql module: www-data@goprod:~/html$ php -m [PHP Modules] Core ctype curl date dom fileinfo filter ftp hash iconv json libxml mbstring mysqlnd openssl pcre PDO pdo_sqlite Phar posix readline Reflection session SimpleXML SPL sqlite3 standard tokenizer xml xmlreader xmlwriter zlib
[Zend Modules]
That's odd, I run the same image and when I do the same as www-data I have the same modules as root.
docker-groupoffice-development git:(master) ✗ docker-compose exec -u www-data groupoffice bash www-data@d5874e19278e:/usr/local/share/src$ php -m [PHP Modules] apcu bcmath calendar Core ctype curl date dom fileinfo filter ftp gd hash iconv intl ionCube Loader json ldap libxml mbstring memcached mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline Reflection session SimpleXML soap sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xdebug xml xmlreader xmlwriter Zend OPcache zip zlib
[Zend Modules] Xdebug Zend OPcache the ionCube PHP Loader + ionCube24
www-data@d5874e19278e:/usr/local/share/src$
Hello,
I have the 6.4.206 version then I perform the upgrade steps, but the version remains the same after that.
This is my docker yml file, I set variables in environment files, the user and password are different from default: