Error upgrading privatebin (³)

Hi everyone,

As of today (2024-08-26), I still have an issue while trying to upgrade privatebin from 1.7.3~ynh1 to 1.7.4~ynh1, even if I’m all up-to-date (yunohost 11.2.28).

My issue is exactly the same as described in this now closed subject

I also opened a bug report on the app repository, but I begin to wonder if it’s not an issue of yunohost itself?

The weird part is that the line 34 of current backup script does not speak about phpversion.

So I wonder if the upgrade process of any app is not using the old backup script of the old (which might be a good idea), but using the context of the new version of the app. In the current case I think the new version now relies on helpers v2.1, but the old one was using the old helpers. Hence the missing phpversion variable, as it has been renamed as php_version in the helpers v2.1.

That’s why removing the app and reinstalling it works around the problem. But as a matter of debug for more complex app, I wonder if we should not find the real cause of the problem to fix it (I imagine it won’t be the only app to be migrated from helpers v2/1 to v2.1.

I’m willing to help as best as I can, but I must admit I don’t know much the packaging process right now. So don’t hesitate to ask me question or test, but I’ll need some guidance.

Hmmyeah that definitely sounds related to packaging v2.1 stuff, maybe your specific case is related to an attempt to upgrade the app while the paint on the 2.1 helpers was still fresh … (and merging the 2.1 helper version of privatebin was a bit too hasty)

Anyway, a “simple” fix attempt should be to manually define the setting using

sudo yunohost app setting privatebin phpversion -v X.Y

with X.Y being the version currently in use for privatebin, which you can find about using something like sudo find /etc/php -name privatebin.conf

Thanks @Aleks it works as expected by temporarily setting this old variable. I’ll write this in the ticket as well.

Just to be complete, I discovered 2 others variables in /etc/yunohost/apps/privatebin/settings.yml, which were not automatically updated. During the upgrade, the fpm config file was moved from php8.2 to php8.3. However:

  • fpm_config_dir was still refering 8.2
  • fpm_service was still refering 8.2

I manually bump those variables too. No idea if they are still used or not?

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