Closed lvrtmbst closed 2 years ago
Nevermind. I think I figured it out by myself. It was indeed related to the memory limit problem. After bumping up the resources for Docker on my host system it went thru like a charm.
The error message with strange numbers got me thinking and pushed me in the right direction.
bash-5.1# ./bin/console theme:change
Please select a theme:
[0] Storefront
> 0
Please select a sales channel:
[0] Headless | 98432def39fc4624b33213a56b8c944d
[1] Storefront | d673894724f8492ea8433f5ef9df8b7a
> 1
Set and compiling theme "Storefront" (3c6e76400aae492293d5a7f35bde1c34) as new theme for sales channel "Storefront"
Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/vendor/symfony/error-handler/ErrorHandler.php on line 477
Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 32768 bytes) in /var/www/html/vendor/symfony/error-handler/Error/OutOfMemoryError.php on line 1
I can start up the entire setup locally and access the backend, set the salesChannel URL and view the storefront. But there is no theme available and I can not change it in the backend.
This seems to originate in the failed theme:compile upon install where I get:
If i start the command manually I'll get basically no feedback:
If I try to change the theme, the process is killed after about 30s
If i try to change or set the theme in the admin panel I'll get an error after a while which resolves in the logs as follows
I tried some things but I'm out of ideas what could be responsible for the behaviour. I bumped up some php values because he had some allocation size problems first.
Thank you in advance