Open kast1450 opened 2 years ago
Hey @kast1450,
please give this command a try:
./shadowdctl exec web cat app/logs/prod.log
Hello, it appears to be running out of memory. Is there any way to allocate more memory to the Shadow Daemon php?
Are you running this on Linux? By default the container will take the memory it needs from the host system. So I guess the host system just does not have enough memory. On Docker for Mac there is a default limit for memory per container. It can be increased though.
If you can't assign more memory to your system you can try to use the "include/exclude" filters at the bottom to generate the rules in multiple steps, e.g., only for specific directories.
The VM has 4GB memory, however viewing the logs the Shadow Daemon PHP file hits a maximum of 8MB of memory. Also yes, I am using Ubuntu 18.04 LTS
I completely forgot about the limitation by PHP itself. I will try to think of a permanent solution when I have time. For now I would recommend to edit the docker-compose.yml
and to override the PHP configuration with a custom one. This way you can set the limits to whatever you like. You can do this with the volumes:
attribute.
Despite changing my php.ini globally and enabling debug in the connector I was unable to generate any error logs. I changed no settings and Shadow Daemon is working properly, yet using the rules generator just generates an error 500 and does nothing.