HTTP Loopback - where the server couldn't access the site which is hosted in the same server
-
Hi there,
I have added infiniteWP in a lamp stack on cloudron as a fallback for my failed managed WordPress approach. Wanted to clone my existing site to an unmanaged WordPress.It looks like I have connection errors from infiniteWP to the other instance on the same server. Their support released an article, which may explain this.
Is that the case for cloudron instances?
-
@dsp76 first step to debug is to open a web terminal of the lamp app and see if
curl https://other.instance
works .Usually, this should work automatically and apps can reach each other by domain name.
-
Yes, the curl from web terminal worked. The diagnostics from infinite says something else - see http loopbacks:
Based on that discussion, curl / wget seems not the diagnosis for this issue:
https://serverfault.com/questions/420897/how-to-enable-http-loopback-connectionsI have no idea, how the vservers are set in cloudron. Maybe there needs to be something additionally added to make it work so servers on the same instance reach each other?
-
-
I have been searching for the last 5 minutes but where is the diagnostics screen in IWP?
-
Unfortunately, I couldn't find it. Let me know where this diagnostics screen is.
Also, are you using Cloudflare or some other proxy?
-
That was the response of WPML:
Located here: /wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Fsupport.php
Meanwhile, it shows REST API supported. I wish I had saved a screenshot... it makes me look like a foolNo cloudfare etc., all is directly connected.
-
@dsp76 said in HTTP Loopback - where the server couldn't access the site which is hosted in the same server:
Located here: /wp-admin/admin.php?page=sitepress-multilingual-cms%2Fmenu%2Fsupport.php
Ah, looks like this from some other plugin and not IWP (per the url) ?
-
Exactly, I had trouble with two plugins at the same time:
- WPML (sitepress-mulilingual-cms)
- InfiniteWP
For WPML - not sure if that was related to HTTP Loopback - the API is again reachable.
InfiniteWP still complains about the loopback issue.I will give it a try with another WP Instance later today. Will report back.
-
Atleast, InfiniteWP works fine for me in WordPress Developer . Can you try in that?
I could not install it in Managed WP. It wants to install it in the
iwp
subdirectory. This is not allowed in the managed WP package. -
Hi @girish - we again run in this issue, while we choose a workaround in January.
We can't connect from infiniteWP Panel (installed in this instance) to a LAMP instance.We came back to the loopback issue, which was also mentioned in the IWP diagnostics:
https://support.infinitewp.com/support/solutions/articles/195234-error-while-adding-a-wordpress-site-to-the-infinitewp-admin-panelShould we be able to connect from one Cloudron App to another? We even tried with the Instance "local" IP address, but had no luck.
-
@dsp76 yes, apps can connect to each other with the domain name. Can you see if you can
curl https://lamp.domain.com
from the Web Terminal of the infiniteWP app instance? -
@dsp76 yes, I am happy to debug the issue with them, if they can give us hints on how to debug the issue on their side with cURL or equivalent.
-
Response from IWP: https://support.infinitewp.com/support/tickets/497259
"I had a developer look into this issue, and he confirmed that our code was having trouble detecting the HTTP Loopback request.
So, I kindly request you ignore the HTTP loopback status on your IWP admin panel." -