Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0055531Openbravo ERPA. Platformpublic2024-05-20 17:412024-05-22 09:14
shuehner 
Triage Platform Base 
normalminorhave not tried
newopen 
5
 
 
Core
No
0055531: After doing obx/MMC update of backoffice (org.openbravo.client.kernel module) "npm ci" fails with Permission denied (missing +x)
In backoffice repositories there are several files which intentionally have execution permissions on linux system (chmod +x)

After having update backoffice modules using obx/MMC those execution permissions are lost.

At least "npm ci" command fails as it seems to rely on the script being marked as executable.

Example error message:
> preinstall
> $npm_package_config_preinstall

sh: 1: modules/org.openbravo.client.kernel/build-scripts/pre-install: Permission denied

Note that loosing +x permissions can also be triggered via 2nd workflow which is:
- restoring a backup using the appliance openbravo-restore command.

As that commands also resets/fixes all file permissions by resetting them to standard values. That conflicts by design.

Note that we need to validate if zip file-format (which is what is used for obx files) is able to store those permissions (unclear)
Install openbravo context (i.e. 23Q4.3)
Update via MMC (scan for updates to get i.e. 24Q1.x) and install those updates
Prep instance having installed nodejs/npm in correct versions (i.e. NodeJS20 right now)
Try running: "npm ci" on commandline
Ideally we try to remove need for the executable bit at least for the non-developer workflows (i.e. npm ci) which are used for building (i.e. pos2)

That would avoid having the problem after both triggers (obx/mmc update as well as openbravo-restore)

If that should not be possible alternative would be to check how to manage the 'some files have executable permissions' for both:
- obx/mmc update
- openbravo-restore script
No tags attached.
Issue History
2024-05-20 17:41shuehnerNew Issue
2024-05-20 17:41shuehnerAssigned To => Triage Platform Base
2024-05-20 17:41shuehnerModules => Core
2024-05-20 17:41shuehnerTriggers an Emergency Pack => No
2024-05-22 09:14rafademiguelIssue Monitored: rafademiguel

There are no notes attached to this issue.