ERROR Composer PHP version >= 8.0

My YunoHost server 11.1.0.2 (testing)

Hardware: Proxmox LXC Container Debian 11
I have access to my server : SSH & webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:

Description of my issue

I have installed an extension on dolibarr. This triggers the problem:

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". 

It is installed
dolibarr 15.0.3~ynh1
PHP 7.4
PHP 8.0
PHP 8.1

I have installed the extension from Github

Version 2.10 worked
Version 2.20 was scheduled php 8.0 version as a requirement.
But the message says that it can not find php 8.0.

Where can be the error?

How have you attempted to install the extension? If it’s with the CLI, please show the command you used.

I have not done it via cli. But in windows unpacked and copied via filezilla sftp in the folder.

OK I see. Current Dolibarr package for YunoHost still uses PHP7.3.

If you are willing to try to upgrade it, with no guarantee it would work, you could do:
(Backup before!)

sudo yunohost app setting dolibarr phpversion -v "8.0"
sudo yunohost app upgrade dolibarr -F

unfortunately it did not work

I have received this error message

2022-11-28 12:51:49,004: DEBUG - 717  ++ ynh_app_setting_get --app=dolibarr --key=do_not_backup_data
2022-11-28 12:51:49,004: DEBUG - 718  ++ local _globalapp=dolibarr
2022-11-28 12:51:49,023: DEBUG - 737  ++ app=dolibarr
2022-11-28 12:51:49,024: DEBUG - 737  ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2022-11-28 12:51:49,024: DEBUG - 737  ++ ynh_app_setting get dolibarr do_not_backup_data
2022-11-28 12:51:49,063: DEBUG - 777  + do_not_backup_data=
2022-11-28 12:51:49,064: DEBUG - 777  + '[' '!' -e /etc/php/8.0/fpm/pool.d/dolibarr.conf ']'
2022-11-28 12:51:49,064: DEBUG - 777  + ynh_print_warn '--message=Source path '\''/etc/php/8.0/fpm/pool.d/dolibarr.conf'\'' does not exist'
2022-11-28 12:51:49,070: DEBUG - 783  + ynh_print_log 'Source path '\''/etc/php/8.0/fpm/pool.d/dolibarr.conf'\'' does not exist'
2022-11-28 12:51:49,070: DEBUG - 783  + echo -e 'Source path '\''/etc/php/8.0/fpm/pool.d/dolibarr.conf'\'' does not exist'
2022-11-28 12:51:49,071: WARNING - 784  Source path '/etc/php/8.0/fpm/pool.d/dolibarr.conf' does not exist
2022-11-28 12:51:49,072: DEBUG - 784  + '[' 0 == 0 ']'
2022-11-28 12:51:49,072: DEBUG - 784  + echo /etc/php/8.0/fpm/pool.d/dolibarr.conf
2022-11-28 12:51:49,072: DEBUG - 785  + grep --quiet /etc/fail2ban
2022-11-28 12:51:49,072: DEBUG - 785  + return 1
2022-11-28 12:51:49,072: DEBUG - 785  + ynh_exit_properly
2022-11-28 12:51:49,574: DEBUG - 1287 + exit 1
2022-11-28 12:51:50,575: DEBUG - 2289 Could not run script: /var/cache/yunohost/app_tmp_work_dirs/app_s5v3q9hc/scripts/backup
2022-11-28 12:51:50,577: WARNING - 2290 Could not back up dolibarr
2022-11-28 12:51:50,580: DEBUG - 2293 The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20221128-125148-backup_create' to get help
2022-11-28 12:51:50,585: DEBUG - 2298 action [25710.1] executed in 2.193s
2022-11-28 12:51:50,585: WARNING - 2298 Nothing to save
2022-11-28 12:51:50,606: DEBUG - + ynh_die '--message=Backup failed, the upgrade process was aborted.'
2022-11-28 12:51:50,617: WARNING - Backup failed, the upgrade process was aborted.
2022-11-28 12:51:51,618: ERROR - Could not upgrade dolibarr: An error occurred inside the app upgrade script

Issue on this line : do you have the file dolibarr.conf in this directory ?

Nah it’s due to the upgrade script that requires more tweaking for my hack to work. I can try to propose a fix later. (There’s a block of code about PHP conf upgrade to uncomment)

problem has resolved itself. version 15.0.3 has been updated to 16.0.3 and thus also to php 8.0

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.