eamena-project / eamena-arches-dev

development repository of the EAMENA Arches-powered database platform
https://eamena.org/home
GNU Affero General Public License v3.0
5 stars 3 forks source link

Incrementor function configuration not accessible #48

Open zoometh opened 8 months ago

zoometh commented 8 months ago

Incrementor function

context: KAHD

The automatic incremental of HP doesn't work. We tried to have a look at its configuration (in function manager) but the latter is not accessible:

This Function doesn't require any configuration.

A. unregister, register Incrementor and restart Apache

python manage.py fn unregister --name 'Incrementor'
python manage.py fn register --source ./krg_arches/functions/incrementor.py
sudo service apache2 restart

B. change ownership of the krg_arches/ folder from arches www-data to arches arches

(ENV) root@ip-172-31-35-85:/opt/arches/krg_arches# ll
total 44
...
drwxrwxr-x 17 arches www-data  4096 Feb 28 16:51 krg_arches/
'''

Doing chown and restart Apache

chown arches:arches krg_arches
sudo service apache2 restart