Pixelfed upgrade failure - Backup can't be made

What app is this about, and its version: Pixelfed from 0.12.6~ynh2 to 0.12.6~ynh4
What YunoHost version are you running: 12.1.39
What type of hardware are you using: VPS bought online

Describe your issue

Hi!

I tried to upgrade Pixelfed version yesterday from 0.12.6~ynh2 to 0.12.6~ynh4 but I see the following error:

"Yunohost encountered an internal error

You should look for help on the forum or the chat to fix the situation, or report the bug on the bugtracker. The following informatino might be useful for the person helping you:

Error: 500
Action: ā€œPUTā€ /yunohost/api/apps/pixelfed__2/upgrade

Error message:
Aborting the upgrade because a safety backup could not be created (Failed to collect files to be backed up)

While processing the action the server said:

Collecting files to be backed up for pixelfed__2…
Declaring files to be backup up…
File or folder ā€˜/etc/php/8.3/fpm/pool.d/pixelfed__2.conf’ to be backed up does not exist
Failed to collect files to backed up for pixelfed__2."

Now the instance has a 502 error and I can’t access it directly. :frowning:

Share relevant logs or error messages

https://paste.yunohost.org/raw/ezediqaxip

https://paste.yunohost.org/raw/kuxijikupa (2nd try after creating the missing file in the 1st one)

Do you remember a previous failed upgrade?
If /etc/php/8.3/fpm/pool.d/pixelfed__2.conf does not exist, you can try to create it (if there’s another instance of pixelfd, you can copy paste from its conf file).
Then try to upgrade.

Other solution is to upgrade without creating backup (option -b : yunohost app upgrade pixelfed__2 -b)

1 Like

So I got the ā€œpixelfed__2.confā€ in an old backup archive and put it on /etc/php/8.3/fpm/pool.d/pixelfed__2.conf. When I try to upgrade again, I have other errors that says:

ā€ERROR - provision_or_update failed for apt : An error occured inside the script snippet : Unable to install apt dependencies, it might be due to a conflict with another app - or you should check and share the previous log about what are the problematic dependenciesā€

When I read the logs, the only error I could find is:

ā€DEBUG - Err:1 https://packages.sury.org/php bookworm/main amd64 php8.4-bcmath amd64 8.4.17-1+0~20260118.40+debian12~1.gbpd1ab00
2026-02-26 15:54:08,344: DEBUG - 404 Not Found [IP: 2a04:4e42:8e::820 443]
2026-02-26 15:54:08,385: DEBUG - Err:2 https://packages.sury.org/php bookworm/main amd64 php8.4-pgsql amd64 8.4.17-1+0~20260118.40+debian12~1.gbpd1ab00
2026-02-26 15:54:08,386: DEBUG - 404 Not Found [IP: 2a04:4e42:8e::820 443]
2026-02-26 15:54:08,391: WARNING - E: Failed to fetch https://packages.sury.org/php/pool/main/p/php8.4/php8.4-bcmath_8.4.17-1%2B0~20260118.40%2Bdebian12~1.gbpd1ab00_amd64.deb 404 Not Found [IP: 2a04:4e42:8e::820 443]
2026-02-26 15:54:08,392: WARNING - E: Failed to fetch https://packages.sury.org/php/pool/main/p/php8.4/php8.4-pgsql_8.4.17-1%2B0~20260118.40%2Bdebian12~1.gbpd1ab00_amd64.deb 404 Not Found [IP: 2a04:4e42:8e::820 443]
2026-02-26 15:54:08,394: WARNING - E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"

https://paste.yunohost.org/raw/kuxijikupa

You have to update the sury repo key.
See

1 Like

Thanks a lot, I haven’t seen it!

I did as they said and now I have the same error that someone else posted here: https://forum.yunohost.org/t/pixelfed-upgrade-failure/41632/1 . Is this a security problem with Pixelfed?

With php-jwt :

But installing the latest package version of pixelfed (0.12.6~ynh4) still ships the same dependency version…

firebase/php-jwt ^6.4

I see… so I need to wait them to correct that, right?

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