Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted #1051

Open
tosiara opened this issue Mar 24, 2024 · 1 comment
Open
Labels
bug Something isn't working server Hashtopolis API/Server related

Comments

@tosiara
Copy link

tosiara commented Mar 24, 2024

Version Information

0.14.2 commit f4fc2b1

Hashcat

No response

Description

Upgraded from 0.12 to the latest master (build docker from sources)
When navigating to Tasks, page spins for ~5 seconds and then gives blank screen.
Logs contain this:

hashtopolis-backend     | [Sun Mar 24 16:37:53.919486 2024] [php:error] [pid 53] [client 192.168.0.72:43800] 
PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted 
(tried to allocate 20480 bytes) in /var/www/html/src/dba/Util.class.php on line 24

Adding ini_set("memory_limit", "2G"); to the Util.class.php file resolves the issue.

Would be great to have max memory value configurable through docker env

@tosiara tosiara added the bug Something isn't working label Mar 24, 2024
@zyronix zyronix added the server Hashtopolis API/Server related label Mar 27, 2024
@zyronix
Copy link
Member

zyronix commented Mar 27, 2024

Workaround: you can add a custom php.ini to the docker volume and mount that over /usr/local/etc/php/conf.d/custom.ini

services:
  hashtopolis-backend:
    container_name: hashtopolis-backend
    image: hashtopolis/backend:latest
    restart: always
    volumes:
      - hashtopolis:/usr/local/share/hashtopolis:Z
      - somelocalpath/myphp.ini:/usr/local/etc/php/conf.d/custom.ini:Z

But I understand that having some customization over some critical settings is prefered.

@zyronix zyronix modified the milestone: APIv2 Preview 3 Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working server Hashtopolis API/Server related
Projects
None yet
Development

No branches or pull requests

2 participants