Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Having issue with grav update

Solved by pamtbaau View solution

Started by Laurent D. Michel 4 years ago · 4 replies · 983 views
4 years ago

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

TXT
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

BASH
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
<?php
   phpinfo();
?>

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

Screen Shot 2022-02-24 at 9.51.23 PM|690x102

Screen Shot 2022-02-24 at 9.41.45 PM|197x500

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

last edited 02/25/22 by Laurent D. Michel
4 years ago Solution

@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.
4 years ago

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

4 years ago

@ldm, Nice!

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

4 years ago

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 ;-)

Thanks again.

--
Laurent

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 91 14 hours ago
General · by pamtbaau, 19 hours ago
1 61 19 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 354 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago