TWSD-567 APV runs out of hard disk memory after upgrade several times
Review Request #880 — Created May 21, 2025 and submitted
| Information | |
|---|---|
| jasonchang | |
| APV10 | |
| rel_apv_10_7, rel_apv_10_7_3 | |
| Reviewers | |
| shuinvy, timlai, timsu | |
After uploading multiple different
.arrayfiles through the WebUI, the APV ran out of disk space for the upgrade.
To resolve the issue, I applied three changes, outlined below.
branches/rel_apv_10_7/usr/click/tools/click_upgrade.pl
When checking if there is enough space to decompress the .array file, I include the /caupgrade/tmp/webui_upload folder in the calculation, if it exists.
branches/rel_apv_10_7/usr/click/tools/pre_upgrade_hooks.sh
To free up space for the update, I delete the .array file in /caupgrade/tmp/webui_upload to avoid leaving any redundant files behind.
branches/rel_apv_10_7/usr/click/bin/backend/sys_cmd.c
Before acquiring the file, I check whether the URL points to a local path or a file server (e.g., starts with http://). If it's a file server URL and the /tmp/webui_upload/ directory exists, I remove the files in that folder.
