8000 Could not set Memory configuration · Issue #796 · matiasdelellis/facerecognition · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Could not set Memory configuration #796

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

Open
Finanzkrise25 opened this issue Feb 17, 2025 · 1 comment
Open

Could not set Memory configuration #796

Finanzkrise25 opened this issue Feb 17, 2025 · 1 comment

Comments

@Finanzkrise25
Copy link
Finanzkrise25 commented Feb 17, 2025

Expected behaviour
Maximum memory should be configured so that face recognition can run

Actual behaviour
Maximum memory assigned for image processing: Not configured.

Seems that you still have to configure the assigned memory for image processing.

Steps to reproduce

Server configuration
Operating system:
Operating System: Ubuntu 24 LTS in Proxmox
Operating System: Linux 6.8.0-53-generic x86_64
CPU: QEMU Virtual CPU version 2.5+ (4 threads)
Memory: 20.03 GB

Nextcloud Hub 9 is installed via Portainer AIO:

I already changed the environment variable to 1024M, set the PHP_LIMIT and the UI also shows 1gb. I Redeployed the AIO-Container and restart all containers.

 - NEXTCLOUD_MAX_TIME=3600 # Can be adjusted if you need more. 
  - NEXTCLOUD_MEMORY_LIMIT=1024M # Can be adjusted if you need more. 
  - PHP_MEMORY_LIMIT=1024M
 - NEXTCLOUD_TRUSTED_CACERTS_DIR=/path/to/my/cacerts # CA certificates in this directory will be trusted by the OS of the nexcloud container (Useful e.g. for LDAPS)

Image

When i try to setup in the Nextcloud container it still says only 128MB available.

:/var/www/html# sudo -u www-data php occ face:setup --memory 512MB

Warning: Failed to set memory limit to 0 bytes (Current memory usage is 2097152 bytes) in Unknown on line 0
The current PHP memory limit is below the recommended value of 512MB.
System memory: 20 GB (21507641344B)
Memory assigned to PHP: 128 MB (134217728B)

Minimum value to assign to image processing.: 682.7 MB (715827882B)
Maximum value to assign to image processing.: 128 MB (134217728B)

Cannot assign more memory than the maximum...

How do i set or override this?

@jojo221119
Copy link

Did you try to set the memory with the following command?

/var/www/html# sudo -u www-data php occ face:setup --memory 512M

PHP uses shorthand forms for memory and file sizes.
shorthandbytes

A few PHP directives may also take on shorthand byte values, as opposed to only int byte values. What are all the available shorthand byte options?
The available options are K (for Kilobytes), M (for Megabytes) and G (for Gigabytes), and are all case-insensitive. Anything else assumes bytes. 1M equals one Megabyte or 1048576 bytes. 1K equals one Kilobyte or 1024 bytes. These shorthand notations may be used in php.ini and in the ini_set() function. Note that the numeric value is cast to int; for instance, 0.5M is interpreted as 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0