matiasdelellis / facerecognition-external-model

Nextcloud Facerecognition External Model
11 stars 10 forks source link

Facerecognition community container - reset memory setting nad image area to starting setting every time nextcloud-aio restarts #17

Open mrmipo opened 3 weeks ago

mrmipo commented 3 weeks ago

Hi

I have issue like describe in title. Every time when my nextcloud-aio instance are restarted those setting are resetting to defaults, And I see that in nextcloud container log:

[28-Jun-2024 09:46:15] NOTICE: fpm is running, pid 453
[28-Jun-2024 09:46:15] NOTICE: ready to handle connections
sh: taskset: not found
facerecognition already installed
facerecognition already enabled
System config value facerecognition.external_model_url set to string nextcloud-aio-facerecognition:5000
System config value facerecognition.external_model_api_key set to string some-super-secret-api-key

The files of model 5 (ExternalModel) are already installed
The model 5 (ExternalModel) was configured as default
System memory: 7.6 GB (8174907392B)
Memory assigned to PHP: 4 GB (4294967296B)

Minimum value to assign to image processing.: 682.7 MB (715827882B)
Maximum value to assign to image processing.: 4 GB (4294967296B)

Maximum memory assigned for image processing: 1 GB (1073741824B)
Config value were not updated
System config value enabledFaceRecognitionMimetype => 0 set to string image/jpeg
System config value enabledFaceRecognitionMimetype => 1 set to string image/png
System config value enabledFaceRecognitionMimetype => 2 set to string image/heic
System config value enabledFaceRecognitionMimetype => 3 set to string image/tiff
System config value enabledFaceRecognitionMimetype => 4 set to string image/webp
Activating Collabora config...
✓ Reset callback url autodetect
Checking configuration
🛈 Configured WOPI URL: https://
🛈 Configured public WOPI URL: https://
🛈 Configured callback URL: 

1/8 - Executing task CheckRequirementsTask (Check all requirements)
✓ Fetched /hosting/discovery endpoint
✓ Valid mimetype response
✓ Valid capabilities entry
✓ Fetched /hosting/capabilities endpoint
✓ Detected WOPI server: Collabora Online Development Edition 24.04.4.1

Collabora URL (used for Nextcloud to contact the Collabora server):
  https://nadysku.eu
Collabora public URL (used in the browser to open Collabora):
  https://nadysku.eu
Callback URL (used by Collabora to connect back to Nextcloud):
  autodetected (will use the same URL as your user for browsing Nextcloud)
2/8 - Executing task CheckCronTask (Check that service is started from either cron or from command)
3/8 - Executing task DisabledUserRemovalTask (Purge all the information of a user when disable the analysis.)
4/8 - Executing task StaleImagesRemovalTask (Crawl for stale images (either missing in filesystem or under .nomedia) and remove them from DB)
5/8 - Executing task AddMissingImagesTask (Crawl for missing images for each user and insert them in DB)

I modify those setting:

docker exec -it --user www-data nextcloud-aio-nextcloud php --define opcache.enable_cli=1 occ face:setup -M 3G
docker exec -it --user www-data nextcloud-aio-nextcloud php --define opcache.enable_cli=1 occ config:app:set facerecognition alysis_image_area --value='8294400' --type=integer

How to prevent resetting those settings ?

I use newest nextcloud-aio and Facerecognition container.

Best regards Michal