cloud-py-api / app_api

Nextcloud AppAPI
https://apps.nextcloud.com/apps/app_api
GNU Affero General Public License v3.0
57 stars 5 forks source link

ExApp init timeout not saved #287

Closed tacruc closed 3 weeks ago

tacruc commented 3 weeks ago

Describe the bug

image

I set the timeout to 3000 minutes, but the ai_image_generation_app initaliation stops failes after 40min.

image

image

[app_api] Fehler: ExApp ai_image_generator_bot initialization failed. Error: ExApp ai_image_generator_bot initialization timed out (2400m) -- um 08.05.2024, 09:35:01

Yes the error says 2400m but it appears after rughply 40min = 60sec*40 = 2400 sec

Steps/Code to Reproduce

Expected Results

The timeout beeing saved, and respected in ExApp init.

Actual Results

The timeout seem's to keep the default value, in the settings page and for also the ExApp init thows an error after the default value.

Setup configuration

app_api = 2.5.1 nextcloud = 29

tacruc commented 3 weeks ago

Related to https://github.com/cloud-py-api/ai_image_generator_bot/issues/8

andrey18106 commented 3 weeks ago

@tacruc Hi! Thank you for reporting this. It's an incorrect key in the UI. Will be fixed in the next AppAPI release.

For now, you can set this setting via CLI: sudo -u www-data php occ config:app:set app_api init_timeout --value 3000 --type integer

tacruc commented 3 weeks ago

Thanks for the fast spot.

andrey18106 commented 3 weeks ago

@tacruc Please update this config setting with mixed type: sudo -u www-data php occ config:app:set app_api init_timeout --value 3000 --type mixed. I missed that we do not support the new appconfig interface with explicit types yet, it's only since NC29, from UI config won't be saved with another types than mixed because of type check.

tacruc commented 3 weeks ago

@andrey18106 thanks, that you thought giving the hint. Sofar I haven't observed any issues with the way I set it.