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

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

Open
mrmipo opened this issue Jun 30, 2024 · 2 comments

Comments

@mrmipo
Copy link

mrmipo commented Jun 30, 2024

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

@frahmlan
Copy link

I'm having the same issue. Is there any way to prevent these settings from being reset without going through all the trouble of manually adding the external container and configuring the system?

@mrmipo
Copy link
Author

mrmipo commented Sep 19, 2024

Hi

I modified facerecognition.json each time when AIO master docker update:

docker exec -it nextcloud-aio-mastercontainer vi community-containers/facerecognition/facerecognition.json

And change all default settings:
{
"aio_services_v1": [
{
"container_name": "nextcloud-aio-facerecognition",
"display_name": "Computing container for facerecognition",
"documentation": "https://github.com/nextcloud/all-in-one/tree/main/community-containers/facerecognition",
"image": "matiasdelellis/facerecognition-external-model",
"image_tag": "v1",
"internal_port": "5000",
"restart": "unless-stopped",
"environment": [
"TZ=%TIMEZONE%",
"API_KEY=some-super-secret-api-key",
"FACE_MODEL=3"
],
"aio_variables": [
"nextcloud_memory_limit=8192M"
],
"nextcloud_exec_commands": [
"php /var/www/html/occ app:install facerecognition",
"php /var/www/html/occ app:enable facerecognition",
"php /var/www/html/occ config:system:set facerecognition.external_model_url --value nextcloud-aio-facerecognition:5000",
"php /var/www/html/occ config:system:set facerecognition.external_model_api_key --value some-super-secret-api-key",
"php /var/www/html/occ face:setup -m 5",
"php /var/www/html/occ face:setup -M 6G",
"php /var/www/html/occ config:app:set facerecognition analysis_image_area --value 8167200",
"php /var/www/html/occ config:system:set enabledFaceRecognitionMimetype 0 --value image/jpeg",
"php /var/www/html/occ config:system:set enabledFaceRecognitionMimetype 1 --value image/png",
"php /var/www/html/occ config:system:set enabledFaceRecognitionMimetype 2 --value image/heic",
"php /var/www/html/occ config:system:set enabledFaceRecognitionMimetype 3 --value image/tiff",
"php /var/www/html/occ config:system:set enabledFaceRecognitionMimetype 4 --value image/webp",
"php /var/www/html/occ face:background_job --defer-clustering &"
]
}
]
}

No other solution find.

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