New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pixelfed upgrade from 0.11.1~ynh2 to 0.11.2~ynh1 fails : php (dependencies ?) issue with composer ? #165
Comments
I think the reason why it failed is because I'm still using php 7.3 and not 7.4 right? |
Even on Debian 10, the upgrade should install php7.4 (if needed) and run Pixelfed with it (it was php7.3 before that version). I will take a look at your logs. |
Here is the error:
I don't know what's the issue that prevent those dependencies from being installed. Sounds like there is some conflict, such as with php-redis. By the way, this is strange:
You might check if both friendica and nextcloud are working well… |
Thanks for looking into that! |
I have the same issue with this. I am running Pixelfed on a VPS as well. |
Update: |
So the same error I guess ? If you install the previous version (I suppose you will have to use |
I logged in my server, went to /var/www/pixelfed and got this after I used your command:
|
Oh sorry, you don't need that By the way, you don't need to be in /var/www/pixelfed, current directory doesn't matter. |
Ahh okay thx, but how do I do that, because I cannot install it on the same domain: So does that mean I need to delete my Pixelfed installation and then install the previous version with that command But can I then restore the current data somehow? Or should I just install Pixelfed on another domain and then upgrade it just to see if that works? |
Hm, I just tried the latter one (install pixelfed on another subdomain) and it failed. Here is the log: https://paste.yunohost.org/raw/isinavubeb |
Ok my bad, I didn't notice you were talking about an upgrade, and not a fresh install… sorry 😅 But now with you last experiment, we know that there is the same error upon install and upgrade… I wonder what's wrong with php7.4 dependencies on some servers and not on others… Something about Debian specific minor versions ? 🤔 |
Any news about that, @aarontrom? Did you manage to get it working? |
Hi @sthaydn yes, actually just yesterday I worked on that and I did the following 3 things:
after installing these packages I was able to upgrade Pixelfed from 0.11.1 to 0.11.2 :) |
Worked also for me. Thanks a lot! |
awesome 👍🏾 no problem :) |
Thanks for sharing the workaround. Nice to see this worked :) |
So I have to share here that my nextcloud Instance has some issues and I strongly suspect this is due to the change that I did there:
I am now investigating. |
I restored a Nextcloud-Backup (from 4 days ago) after I removed the 3 packages that I installed there and now it works again. And interestingly Pixelfed works too, despite me removing
|
Oh dear, that's indeed very strange. But glad it works for you now. I don't have Nextcloud installed, all other apps are working fine. |
Hm, now the supervisor service from Pixelfed doesn't work anymore. So there seems to be an issue with the php versions. Some depend on php7.3 and pixelfed 0.11.2 only works with php7.4 |
Yes I might reopen this issue for the yunohost pixelfed packagers. |
What depends on php7.3 ?
Good point, I forgot to reopen it 😅 |
In /etc/php/7.3/fpm/pool.d there seem a lot of apps using and depending on php7.3: I can also share this in /run/php: also in
|
Should I choose the option 0 there? to put php7.4 in auto mode? |
That's fine and quite normal as far as I know. (but migrations to php7.4 are coming for some of them)
I have noooo idea 😅. Maybe @YunoHost-Apps/apps-group will have more information, but I would say change nothing and let Yunohost apps handle this php version stuff, just in case 😅 |
there was an upgrade today actually of pixelfed on yunohost via the admin panel. I did the upgrade to version: 0.11.3 and everything works fine now. I also do have a NextCloud there, plus I also do have php 7.4 and pixelfed is using that actually. |
Yes, but if I've correctly followed your case :
So shall I have to take all those steps too to upgrade my Pixelfed installation, temporarily breaking my Nextcloud service and my Pixelfed service, or is it possible to implement something on the Yunohost package which may be more secure, or is there at least a more easy way to do the upgrade manually ? |
Ohh @Tony-John-Cil I'm sorry that I didn't get back to your message earlier... |
Nope, I still haven't updated it successfully, but I'm now waiting for the update of the Nextcloud app, which is still in version 22, but a pull request for version 24 is pending, then I will try to update Pixelfed again with the hope that it won't break. |
All thoses issues comes from the upgrade of PHP from 7.3 to 7.4. Pixelfed require php-redis but php7.3-redis is not compatible with php7.4-redis ... |
What version does Nextcloud use ? |
nextcloud_ynh still uses Nextcloud 22 with PHP 7.3, but pull requests are pending for Nextcloud 23 and 24 which uses higher PHP versions. |
With php 8.0… maybe it with resolve the conflict ? |
Same issue with php8.0-redis From https://packages.sury.org/php/dists/buster/main/binary-amd64/Packages
Maybe a solution would be to just have |
I'll try that… but for the other dependencies, I hope it's not the same… |
@Tony-John-Cil could you try again now with the latest version ? (0.11.3) |
Thanks ! But it seems that there's a problem with |
Can you try again with this one ? |
Thanks ! But it seems that there's still a problem with |
@Tony-John-Cil could you try the latest testing please ? |
Thanks ! But now there's a problem with composer or one of its dependencies : |
The error is not really clear… Or something about a migration to Composer 2, I recall reading something about it regarding Pixelfed. |
Isn't it possible to log more errors on Yunohost scripts side or on Composer side ? Are there "verbose" options that may show more errors on that step ? |
I don't know. Maybe you can open a topic on the forum to ask for help ? |
Problem solved ! In the end, I've just manually replaced the file |
Could you explain how you did that ? (to help other people stuck in this issue ;) |
In this case, there aren't many steps I can add. Here is the very specific procedure I've done but other configurations may act differently : cd /var/www/pixelfed
sudo rm composer.phar
# Composer installation steps as they are prompted on https://getcomposer.org/download/
sudo php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
sudo php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php
sudo php -r "unlink('composer-setup.php');"
## Upgrade from Yunohost testing branch
sudo yunohost app upgrade pixelfed -u https://github.com/YunoHost-Apps/pixelfed_ynh/tree/testing --debug But isn't there a way to check for the version of |
We will have to work on that. I believe next version will require it, although I cannot recall where I found that. |
I believe #182 might fix the original issue @aarontrom had. I'm closing for now. |
Describe the bug
I tried to upgrade Pixelfed from version 0.11.1
ynh2 to 0.11.2ynh1in the yunohost admin panel and it failed.Context
Steps to reproduce
Logs
https://paste.yunohost.org/raw/dafoqekiba
Any help is appreciated :)
The text was updated successfully, but these errors were encountered: