-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
The connection to the GPM cannot be established. #1355
Comments
I have something similar, followed all the steps on the site + additional and still get the error. |
This is pretty confusing because GPM uses the same base classes for both admin and CLI. I guess the only real differentiator is the user it runs under (nginx vs logged in via CLI). So that definitely makes me think it's a permission issue. I'm guessing both of you have Grav running under a webserver with a different user from who actually owns the files? Is there anyway you could configure your webserver with the same user to test if that is indeed the issue? For Nginx, this needs to be set in PHP FPM connection pool: https://learn.getgrav.org/webservers-hosting/vps/linode#configure-nginx-connection-pool |
@rhukster thanks for you digging; |
I'm having the same problem on Apache with GPM working fine via CLI. It also stopped working on other sites that haven't undergone any special changes (it used to work). Happy to help however I can! |
Hi again; @rhukster sorry for the delay but actually I think your right! In my casenginx run as abc (yep I'm eating my own food which is a gravcms in a docker/linuxserver) via the CLIwhen I'm running /bin/gpm I'm root So at least for my self I'll consider we could close this issue I would liketo invite @chrisjenx and @artofthesmart to share their config |
PS and ha!ha! |
I'm getting the same error but it is not working in command line. I get this error when I do bin/gpm index: Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /home3/profesa/public_html/vendor/symfony/var-dumper/Resources/functions/dump.php on line 18 I've already used a fix to update the CLI and for example newuser is working. Thanks |
I have 2times this issue on alpine and on a centos server both with nginx/php7 and gravcms+admin installed via a routine of wget, unzip, chown, chmod, than cp the nginx config from here
may I mention, in both machine,
bin/gpm [index,install,update,...]
works wellNow the funniest thing it's if I
wget
a skeleton into the same directory and apply the samechown, chmod and chcon restart nginx
than everything works perfectlySo I believe something missing from your side
What I did before opening this issue :
user/config/system.yaml |grep peer
curl -I https://getgrav.org/downloads/plugins.json
, a test I found here your server answerthese all packages installed
The text was updated successfully, but these errors were encountered: