cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with docker installation

Need help with docker installation

I'm on a fresh install from archive using docker containers and need assistance. For some reason, my posts are getting flagged as spam, so hopefully this one stays.

NGINX and PHP both work as they should, but I can't reach the setup page for mage; I have verified I can write to that directory from both the PHP and the NGINX host.

 

 

Fatal error: Uncaught Zend_Cache_Exception: cache_dir "/usr/share/nginx/html/var/page_cache" is not writable in /usr/share/nginx/html/vendor/magento/zendframework1/library/Zend/Cache.php:209 Stack trace: #0 /usr/share/nginx/html/vendor/magento/zendframework1/library/Zend/Cache/Backend/File.php(180): Zend_Cache::throwException('cache_dir "/usr...') #1 /usr/share/nginx/html/vendor/colinmollenhour/cache-backend-file/File.php(87): Zend_Cache_Backend_File->setCacheDir('/usr/share/ngin...') #2 /usr/share/nginx/html/vendor/magento/zendframework1/library/Zend/Cache.php(153): Cm_Cache_Backend_File->__construct(Array) #3 /usr/share/nginx/html/vendor/magento/zendframework1/library/Zend/Cache.php(94): Zend_Cache::_makeBackend('Cm_Cache_Backen...', Array, true, true) #4 /usr/share/nginx/html/vendor/magento/framework/App/Cache/Frontend/Factory.php(156): Zend_Cache::factory('Magento\\Framewo...', 'Cm_Cache_Backen...', Array, Array, true, true, true) #5 /usr/share/nginx/html/vendor/magento/framework/Cache/Frontend/Adapter/Zend.php(38): M in /usr/share/nginx/html/vendor/magento/zendframework1/library/Zend/Cache.php on line 209

4 REPLIES 4

Re: Need help with docker installation

Here's the CLI output of ./magento:

 

root@4c20ac68fde8:/usr/share/nginx/html/bin# ./magento

Fatal error: Uncaught Error: Undefined class constant 'PDO::MYSQL_ATTR_SSL_KEY' in /usr/share/nginx/html/setup/src/Magento/Setup/Model/ConfigOptionsList.php:179
Stack trace:
#0 /usr/share/nginx/html/setup/src/Magento/Setup/Model/ConfigModel.php(71): Magento\Setup\Model\ConfigOptionsList->getOptions()
#1 /usr/share/nginx/html/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php(64): Magento\Setup\Model\ConfigModel->getAvailableOptions()
#2 /usr/share/nginx/html/vendor/symfony/console/Command/Command.php(77): Magento\Setup\Console\Command\ConfigSetCommand->configure()
#3 /usr/share/nginx/html/setup/src/Magento/Setup/Console/Command/ConfigSetCommand.php(54): Symfony\Component\Console\Command\Command->__construct()
#4 /usr/share/nginx/html/vendor/laminas/laminas-di/src/Di.php(511): Magento\Setup\Console\Command\ConfigSetCommand->__construct(Object(Magento\Setup\Model\ConfigModel), Object(Magento\Framework\Module\ModuleList), Object(Magento\Framework\App\DeploymentConfig))
#5 /usr/share/nginx/html/vendor/laminas/lamina in /usr/share/nginx/html/setup/src/Magento/Setup/Model/ConfigOptionsList.php on line 179

Re: Need help with docker installation

SOLVED first part, running composer again now

Re: Need help with docker installation

seems i'm out of memory too, PHP has 1G allocated

 

root@43817a08d1a7:/usr/share/nginx/html# composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition
Creating a "magento/project-community-edition" project at "./project-community-edition"
Installing magento/project-community-edition (2.4.0)
- Installing magento/project-community-edition (2.4.0): Loading from cache
Created project in /usr/share/nginx/html/project-community-edition
Loading composer repositories with package information
Updating dependencies (including require-dev)

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory

Fatal error: Out of memory (allocated 767565824) (tried to allocate 20480 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/GenericRule.php on line 36

Re: Need help with docker installation

composer finished installing, no errors but admin page is 404 and index still gives the OP error about the zend cache page.  Would really love a reply and a little help