Skip to content
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

GPM not reachable by plugins page in admin #1120

Closed
kmcital opened this issue Oct 20, 2016 · 4 comments
Closed

GPM not reachable by plugins page in admin #1120

kmcital opened this issue Oct 20, 2016 · 4 comments
Labels

Comments

@kmcital
Copy link

kmcital commented Oct 20, 2016

(related to issue 1008 )
My site has been fine, until I just upgraded to latest version of Grav and plugins. Then I got this exact same error.

An exception has been thrown during the rendering of a template ("GPM not reachable. Please check your internet connection or check the Grav site is reachable") in "partials/plugins-list.html.twig" at line 19

When I issue the command curl -I https://getgrav.org/downloads/plugins.json from the web server it comes back with

HTTP/1.1 200 OK
Server: nginx
Date: Thu, 20 Oct 2016 16:38:59 GMT
Content-Type: application/json
Connection: keep-alive
Vary: Accept-Encoding
Pragma: no-cache
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: OPTIONS, GET, HEAD, POST, PUT, DELETE
Cache-Control: max-age=3600
Expires: Thu, 20 Oct 2016 17:38:59 GMT
Vary: Accept-Encoding
Set-Cookie: grav-site-7fe36eb=2c03fb400e6d7c6e006e58f65e1e6328; expires=Thu, 20-Oct-2016 17:08:59 GMT; Max-Age=1800; path=/; domain=getgrav.org
Set-Cookie: grav-site-7fe36eb=2c03fb400e6d7c6e006e58f65e1e6328; expires=Thu, 20-Oct-2016 17:08:59 GMT; Max-Age=1800; path=/; domain=getgrav.org; HttpOnly
Last-Modified: Thu, 08 Oct 2015 22:20:13 GMT
ETag: 80fef8abc41eff6c507d08b627a0fbe4

Also, with bin/gpm index I now get "No data was found in the GPM repository stored locally.". I've followed the permissions instructions on the "Cannot connect to the GPM" page.

This happened directly as a result of the upgrades I did.

@flaviocopes
Copy link
Contributor

flaviocopes commented Oct 20, 2016

In the System settings, try turning off "Remote Verify Peer (SSL)", does it change something? (gpm.verify_peer: false in system.yaml)

@kmcital
Copy link
Author

kmcital commented Oct 20, 2016

That setting fixes the problem. I'm back in business, thanks @flaviocopes !!

As a point of clarity, I had only upgraded Grav, not the plugins yet when the error surfaced. Now I was able to update all plugins.

@rhukster
Copy link
Member

We're working on a fix for this. We're explicitly setting verify peer either true or false. Default is true (like it is default curl) However, we never set this value before, so I guess there are some systems that had the default setting of false. So we're not going to set this unless false is explicitly needed. Next release will have this fix.

@flaviocopes
Copy link
Contributor

Fixed in Grav 1.1.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants