PHP 7.1 upgrade failed

Published 2 months ago by opheliadesign

Hi everyone,

I reached out to Taylor via support but hope that the community here might be able to lend a hand a bit quicker.

I clicked on the "Upgrade PHP" button within Forge on one of my servers and it now states that I am running the current version. I attempted to push changes that require 7.1 and the server is still running 7.0.1. I attempted a reboot and nothing changed.

In the Forge logs, the output from the upgrade is:

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.1-fpm
E: Couldn't find any package by regex 'php7.1-fpm'
E: Unable to locate package php7.1-cli
E: Couldn't find any package by regex 'php7.1-cli'
E: Unable to locate package php7.1-dev
E: Couldn't find any package by regex 'php7.1-dev'
E: Unable to locate package php7.1-pgsql
E: Couldn't find any package by regex 'php7.1-pgsql'
E: Unable to locate package php7.1-sqlite3
E: Couldn't find any package by regex 'php7.1-sqlite3'
E: Unable to locate package php7.1-gd
E: Couldn't find any package by regex 'php7.1-gd'
E: Unable to locate package php7.1-curl
E: Couldn't find any package by regex 'php7.1-curl'
E: Unable to locate package php7.1-memcached
E: Couldn't find any package by regex 'php7.1-memcached'
E: Unable to locate package php7.1-imap
E: Couldn't find any package by regex 'php7.1-imap'
E: Unable to locate package php7.1-mysql
E: Couldn't find any package by regex 'php7.1-mysql'
E: Unable to locate package php7.1-mbstring
E: Couldn't find any package by regex 'php7.1-mbstring'
E: Unable to locate package php7.1-xml
E: Couldn't find any package by regex 'php7.1-xml'
E: Unable to locate package php7.1-zip
E: Couldn't find any package by regex 'php7.1-zip'
E: Unable to locate package php7.1-bcmath
E: Couldn't find any package by regex 'php7.1-bcmath'
E: Unable to locate package php7.1-soap
E: Couldn't find any package by regex 'php7.1-soap'
E: Unable to locate package php7.1-intl
E: Couldn't find any package by regex 'php7.1-intl'
E: Unable to locate package php7.1-readline
E: Couldn't find any package by regex 'php7.1-readline'
E: Unable to locate package php7.1-mcrypt
E: Couldn't find any package by regex 'php7.1-mcrypt'
E: Unable to locate package php-msgpack
E: Unable to locate package php-igbinary

Any ideas? All I did was click the button.

bashy
bashy
2 months ago (1,090,030 XP)

I'm guessing it didn't do the process fully. Was the server always managed through Forge?

opheliadesign

@bashy yes, provisioned on Forge.

opheliadesign

This is a Digital Ocean server, by the way.

opheliadesign

Also, my dev environment is is 7.1. If I switch to 7.0.1 and run Composer again, might this rectify the problem? Or reverting composer.lock?

I really need to push code to this server. I'd like to upgrade PHP but need to bypass the Composer 7.1 requirement in the short term.

It would be great if these cool Forge features actually worked. I was also running into errors attempting to use the free SSL. Support is very limited for a product that I have paid for nearly since it was introduced.

I use Envoyer to deploy.

bashy
bashy
2 months ago (1,090,030 XP)

@opheliadesign The issue is that the server can't find the apt package for PHP. This is a server level issue and has nothing to do with Composer or your app.

I would either re-provision the server as PHP 7.1 (create a new one) or go into the server itself and fix the issue. If you don't know Linux, I can probably guide you on how to install PHP 7.1 manually.

opheliadesign

@bashy kind of thought that this Forge feature was supposed to execute whatever commands were necessary to complete the upgrade? The server was provisioned not too long ago through Forge. Clearly bugs in Taylor's feature, still nothing from him. Gets frustrating sometimes.

And everything would be fine if Composer was not updating when pushing changes, the modified files were mostly Javascript.

Anyway, I found this tutorial - https://brysemeijer.com/blog/5/laravel-forge-upgrade-to-php-71. What do you think? I would appreciate any help you can give, impatient client. I used to run Ubuntu on my machine, somewhat know my way around. :)

bashy
bashy
2 months ago (1,090,030 XP)

@opheliadesign Well, it should have but it clearly failed at some point. It could of been a apt mirror which was offline or a network issue and it just skipped that part.

Easiest thing is to re-create the server, unless you can downgrade PHP versions and try 7.1 again?

opheliadesign

@bashy the client may blow a gasket if I have to switch DNS and cause downtime.

Do you think that the tutorial I linked to is worth a try? Or if you could lend me a hand I'd really appreciate it.

Thanks!

bashy
bashy
2 months ago (1,090,030 XP)

@opheliadesign Oh yeah, I forget people don't always have failover IPs :P In that case, I would follow that and see if you can get it working. You can run two php-fpm installs anyway and just quickly switch out the sock file in your PHP block.

Please sign in or create an account to participate in this conversation.