-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 #1008
Comments
Did you check https://learn.getgrav.org/troubleshooting/common-problems#cannot-connect-to-the-gpm already? |
Are you behind proxy? |
For you, yes. It's a bit weird because I don't get that CERT issue and further more I'm failing to see how calling Do you have a different server, or your computer even if you're on Linux/Mac, where you can try that command on? |
Yes something looks wrong on your VPS, you should be getting the same response as on your Mac. Also it's normal for it to respond ok when going through |
Re |
@dimlau can you run this command from the machine where you get the error and paste back the output? echo | openssl s_client -showcerts -servername getgrav.org -connect getgrav.org:443 2>/dev/null | openssl x509 -inform pem -noout -text |
Any update on this @dimlau ? |
I'm assuming everything worked out for the best. The issue didn't seem related to Grav itself but to the VPS for this reason I'm going to close the issue. However, if you have other comments regarding what might have caused that and how you resolved it, I would be very interested to know. Cheers. |
Same symptom happened to me. Contacted my hosting support and at first they were confused. Later on they said it's because my VPS runs old openssl & curl version that can't be upgraded on CentOS 5.11. To complicate the matter, they said that CentOS 5.11 can't be upgraded. Solution they offer is to buy new hosting plan with new OS and do the migration. How does that sound to you? Here's the excerpt:
|
That is unfortunate. However I believe I was able to circumvent most of this SSL issues and I already provided a fix with #1053. By disabling the verify peer you will be able, hopefully, to get through with GPM no matter the curl and ssl version. We hope to get this release out soon in the meantime you could try following this thread where I provide gruidance on how to approach the problem, hopefully it will work for you too. See #1044. |
Thanks. I tried those tips on #1053 but still getting the same error message. Running curl with -k option did the trick though. Maybe I just missed some config lines? Will check again. |
Yah -k is what I now made available as an option to opt-out of the peer verification. See also c4f71c9 or force the method to |
Same problem (or same result) if i have no internet connection (local installation in Apache).
In my opinion, Grav should work without connection to the internet - dokuwiki does. |
…exception, for use in Twig, re #1008
…o add a more helpful message in the "add" view. re getgrav/grav#1008
@qwertologe is not related to the OP problem, but I replicated. Plugins and themes list were not working, even to access the configuration. The 2 commits above, in Admin and in Core Grav, fix the problem. |
@flaviocopes Ok, sorry now I'm also hear, after I found the Problem in #931 :/ I tried curl -I https://getgrav.org/downloads/plugins.json and got: If I trie: I got:
Any ideas? Is it really the curl-version-problem? In OpenWRT the newest update is Curl 7.43.0-1. |
Might be an old SSL release problem. Did you already try turning off system.gpm.verify_peer as suggested previously? |
UUUffff, thanks, yea now it worked. Is not a optimal solution I think but it works. Tried it already before but had at the same Time also a proxy deposited and because of that it didn't worked somehow... |
Thanks, now it works - even during during train ride (flapping connection). But another problem remains: The font for the content changes - here it is TeX Gyre Heros without and Raleway with internet connection. A solution could be: getgrav/grav-theme-antimatter#88 |
Yes, that's another issue, specific to the theme. The theme should provide a local font. |
[2016-08-26 13:39:39] grav.CRITICAL: 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.
Stack trace
``` - Trace: #0 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(355): Twig_Template->displayWithErrorHandling(Array, Array) #1 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Environment.php(403) : eval()'d code(218): Twig_Template->display(Array) #2 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(167): __TwigTemplate_8b75f437169b28aa0f432a531a8bbd5d55e9ab45e32c7ebed1a94a6e1ce96951->block_content(Array, Array) #3 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Environment.php(403) : eval()'d code(198): Twig_Template->displayBlock('content', Array, Array) #4 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(167): __TwigTemplate_22d4a31ad21e6a0bb7a3271732673cbe420395e0c4031fe6fea7feb205bc15fd->block_page(Array, Array) #5 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Environment.php(403) : eval()'d code(151): Twig_Template->displayBlock('page', Array, Array) #6 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(167): __TwigTemplate_22d4a31ad21e6a0bb7a3271732673cbe420395e0c4031fe6fea7feb205bc15fd->block_body(Array, Array) #7 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Environment.php(403) : eval()'d code(41): Twig_Template->displayBlock('body', Array, Array) #8 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(387): __TwigTemplate_22d4a31ad21e6a0bb7a3271732673cbe420395e0c4031fe6fea7feb205bc15fd->doDisplay(Array, Array) #9 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(355): Twig_Template->displayWithErrorHandling(Array, Array) #10 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Environment.php(403) : eval()'d code(63): Twig_Template->display(Array, Array) #11 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(387): __TwigTemplate_8b75f437169b28aa0f432a531a8bbd5d55e9ab45e32c7ebed1a94a6e1ce96951->doDisplay(Array, Array) #12 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(355): Twig_Template->displayWithErrorHandling(Array, Array) #13 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(366): Twig_Template->display(Array) #14 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Environment.php(347): Twig_Template->render(Array) #15 /home/wwwroot/kaixin/system/src/Grav/Common/Twig/Twig.php(340): Twig_Environment->render('plugins.html.tw...', Array) #16 /home/wwwroot/kaixin/system/src/Grav/Common/Service/OutputServiceProvider.php(19): Grav\Common\Twig\Twig->processSite(NULL) #17 /home/wwwroot/kaixin/vendor/pimple/pimple/src/Pimple/Container.php(113): Grav\Common\Service\OutputServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav)) #18 /home/wwwroot/kaixin/system/src/Grav/Common/Processors/RenderProcessor.php(17): Pimple\Container->offsetGet('output') #19 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(121): Grav\Common\Processors\RenderProcessor->process() #20 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(396): Grav\Common\Grav->Grav\Common{closure}() #21 [internal function]: Grav\Common\Grav::Grav\Common{closure}('render', 'Render', Object(Closure)) #22 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(372): call_user_func_array(Object(Closure), Array) #23 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(122): Grav\Common\Grav->__call('measureTime', Array) #24 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(122): Grav\Common\Grav->measureTime('render', 'Render', Object(Closure)) #25 /home/wwwroot/kaixin/index.php(45): Grav\Common\Grav->process() #26 {main} [] [] [2016-08-26 13:51:58] grav.CRITICAL: 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/themes-list.html.twig" at line 21. - Trace: #0 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(355): Twig_Template->displayWithErrorHandling(Array, Array) #1 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Environment.php(403) : eval()'d code(204): Twig_Template->display(Array) #2 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(167): __TwigTemplate_0def82b009bdd2f615e1ef2e09a1b71bb3cd15087f9776dc3c8724ce4300b46f->block_content(Array, Array) #3 /home/wwwroot/kaixin/cache/twig/a1/a1f846d14472f3ff27ab68743c2dad9c313b7e1f076e19b0bbd8a29b8fbbf6a5.php(198): Twig_Template->displayBlock('content', Array, Array) #4 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(167): __TwigTemplate_22d4a31ad21e6a0bb7a3271732673cbe420395e0c4031fe6fea7feb205bc15fd->block_page(Array, Array) #5 /home/wwwroot/kaixin/cache/twig/a1/a1f846d14472f3ff27ab68743c2dad9c313b7e1f076e19b0bbd8a29b8fbbf6a5.php(151): Twig_Template->displayBlock('page', Array, Array) #6 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(167): __TwigTemplate_22d4a31ad21e6a0bb7a3271732673cbe420395e0c4031fe6fea7feb205bc15fd->block_body(Array, Array) #7 /home/wwwroot/kaixin/cache/twig/a1/a1f846d14472f3ff27ab68743c2dad9c313b7e1f076e19b0bbd8a29b8fbbf6a5.php(41): Twig_Template->displayBlock('body', Array, Array) #8 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(387): __TwigTemplate_22d4a31ad21e6a0bb7a3271732673cbe420395e0c4031fe6fea7feb205bc15fd->doDisplay(Array, Array) #9 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(355): Twig_Template->displayWithErrorHandling(Array, Array) #10 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Environment.php(403) : eval()'d code(61): Twig_Template->display(Array, Array) #11 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(387): __TwigTemplate_0def82b009bdd2f615e1ef2e09a1b71bb3cd15087f9776dc3c8724ce4300b46f->doDisplay(Array, Array) #12 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(355): Twig_Template->displayWithErrorHandling(Array, Array) #13 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Template.php(366): Twig_Template->display(Array) #14 /home/wwwroot/kaixin/vendor/twig/twig/lib/Twig/Environment.php(347): Twig_Template->render(Array) #15 /home/wwwroot/kaixin/system/src/Grav/Common/Twig/Twig.php(340): Twig_Environment->render('themes.html.twi...', Array) #16 /home/wwwroot/kaixin/system/src/Grav/Common/Service/OutputServiceProvider.php(19): Grav\Common\Twig\Twig->processSite(NULL) #17 /home/wwwroot/kaixin/vendor/pimple/pimple/src/Pimple/Container.php(113): Grav\Common\Service\OutputServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav)) #18 /home/wwwroot/kaixin/system/src/Grav/Common/Processors/RenderProcessor.php(17): Pimple\Container->offsetGet('output') #19 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(121): Grav\Common\Processors\RenderProcessor->process() #20 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(396): Grav\Common\Grav->Grav\Common{closure}() #21 [internal function]: Grav\Common\Grav::Grav\Common{closure}('render', 'Render', Object(Closure)) #22 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(372): call_user_func_array(Object(Closure), Array) #23 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(122): Grav\Common\Grav->__call('measureTime', Array) #24 /home/wwwroot/kaixin/system/src/Grav/Common/Grav.php(122): Grav\Common\Grav->measureTime('render', 'Render', Object(Closure)) #25 /home/wwwroot/kaixin/index.php(45): Grav\Common\Grav->process() #26 {main} [] [] [2016-08-26 13:54:06] grav.CRITICAL: Call to a member function filter() on null - Trace: #0 /home/wwwroot/kaixin/vendor/filp/whoops/src/Whoops/Run.php(363): Whoops\Run->handleError(1, 'Call to a membe...', '/home/wwwroot/k...', 477) #1 [internal function]: Whoops\Run->handleShutdown() #2 {main} [] [] ```The text was updated successfully, but these errors were encountered: