Having issue with grav update

Hi,

I’m having trouble with updating a site. Grav simply won’t upgrade at all and fails with in this way. I tried using bin/gpm selfupgrade and here is the output

ldm@ash:/var/www/html/grav$ sudo bin/gpm selfupgrade
GPM Releases Configuration: Testing

Grav v1.7.30 is now available [release date: Mon Feb  7 19:12:43 2022].
You are currently using v1.7.0-beta.10.
Would you like to read the changelog before proceeding? [y|N] 
Would you like to upgrade now? [y|N] y

Preparing to upgrade to v1.7.30..
  |- Downloading upgrade [8.69M]...     0%
In Response.php line 316:
                                            
  Error while trying to download (code: ):  
                                            

self-upgrade [-f|--force] [-y|--all-yes] [-o|--overwrite]

No amount of cajoling gets it through. Additionally, the admin GUI does crash with an error as well. So I’m totally stuck. Any suggestion most welcome.

Openssl appear to be fully functional (at the very least at the apache2 level. I did upgrade the server to ubuntu 20.04 in the hope that a more recent PHP would solve the issue. It did not.

Note that php -m shows that openssl is there

php -m
[PHP Modules]
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
openssl
pcntl
pcre
PDO
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Checking with a page

<?php
   phpinfo();
?>

does produce the attached screenshot. So it seems that openssl is fine.

I’m looking for any way to get back to a functional state.

@ldm, This is an error which has been reported a few times before. Please check if any of these reports might help you.

Although your version was already on 1.7 it is a very early beta version. It might still be useful to check the upgrade guide.

If nothing helps, you might try the following:

  • Create a fresh installation of Grav
  • Copy /user/ folder from failing installation into fresh installation.
  • Run $ bin/gpm update to upgrade all themes/plugins.

Dear @pamtbaau,

Your last suggestion worked! (copying the user folder). Thank you! Much appreciated. I’m all up to date again.

All the best,


Laurent

@ldm, Nice!

Being able to copy files around is just one of the strengths of a file based CMS…

That is true. I was tempted last night to do such a thing. I would have eventually tried, but your message confirmed it was nothing to be worried about.

And I didn’t have to downgrade PHP :wink:

Thanks again.


Laurent