I have two apps both hosted on DO through Laravel Forge and both in the same region. One hosts my application, the other is a dedicated Meilisearch server. Both are in each other's server network. I've got the correct Meilisearh credentials in my app's .env and my Scout config is correct.
I'm getting a 504 gateway time-out when visiting the home page of the app (which has a search feature) and when trying to run php artisan scout:import "App\Models\ModelName" when ssh'ed into my application server I get the following error:
MeiliSearch\Exceptions\CommunicationException
cURL error 28: Failed to connect to "SERVER IP ADDRESS" port 7700: Connection timed out
I'm not sure how else to troubleshoot this so any help is appreciated.
MeiliSearch is probably on port 80
Related
I have developed a laravel application and I want to share this application in my local network to be able to access to this app from any workstation connected to this network.
I'm using EasyPHP-Devserver-17 and the app is working correctly on the local machine (127.0.0.1/app/public). I have changed the phpserve file to add "Listen 10.0.102.2:8080" and once I add this to phpserve file I can access to this address "http://10.0.102.2:8080" from others workstation, but when I go to the laravel app I got this error message:
Not Found
I changed the URL in the following files in the laravel app: app.php, .env and livewire.php, but I still get the same error message.
hello maybe this link will serve you
Access to Laravel 5 app locally from an external device
php artisan serve --host 0.0.0.0 --port 80
"0.0.0.0" is your ip server
The default port it will be listening to will be 8000 to avoid any conflicts, so you can now access the application from your phone via the IP address of your computer:
http://192.168.1.101:8000
I have a system in JSP and DB PostgreSQL running on a CentOS 7 server however the error happened in a test VM running Lubuntu
I made an API in PHP with Laravel that sends and receives requests from an APP mobile
Until then everything was working correctly, but if I restart this server I lose the connection with the DB, it will return me this error:
SQLSTATE[08006] [7] could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
If I try to access the DB through pgAdmin, this returns Connecting to database ... Failed.
The VM accesses correctly through the XenCenter console, however the SSH connection that previously connected correctly is presented Network error: Conection refused
It is as if after restarting blocking all the ports, but until the firewall is disabled
[EDIT]
After some tests I discovered that the problem happens only after enabling mod_rewrite
I have hosted website and api on apache server on linux machine. I am trying to access the api through node js (using request module)which is on the same network. From outside that network, the api is accessible and working fine. I have many apis on the machine and only few are throwing this error. Recent change which was made to server is changing the cookie domain from foo.bar.com to *.bar.com in php.ini file. The website is working good. There is not much load on the server too. Any help appreciated.
A "connection refused" error means a TCP connection can't be established, so the cookie domain change should not have an effect here.
Are you sure it's a Node.js "connection refused" error, and not, say, the API itself being able to connect somewhere else? Can you give us the exact error message, with any traceback, etc., context?
You say there are many APIs (assuming API servers) on the machine and only some fail (assuming you tested this from the machine that is having problems connecting to the API server machine).
Are the working servers on different ports compared to the non-working ones?
Do those servers work from within the network? You say they're working fine outside of it. (It's possible that your local network has a firewall policy that prohibits this local connection.)
Can you double-check that the non-working servers are actually running? (An easy way to establish this would be running ss -ltpn; it should give you a list of listening TCP ports and their associated processes.)
I am using laravel-gamp (https://github.com/irazasyed/laravel-gamp) to track events in my Laravel 5.2 REST server. However if I set sending method to sync I always get this error (I am using SSL):
cURL error 7: Failed to connect to ssl.google-analytics.com port 443:
Connection refused (see
http://curl.haxx.se/libcurl/c/libcurl-errors.html)
I am running Laravel on a Ubuntu VM with cURL updated to the latest version.
How can I fix this error?
Thanks
Simply it was Ubuntu iptables blocking outgoing connections for port 443
I have developed an android app that connect mysql database using php. when making https request to scripts php from other computers located on the same local network no problem, but when trying to request the same scripts from my android phone it gives tcp errors.
There is however a far better solution. You can access your host machine with the IP address "10.0.2.2".
This has been designed in this way by the Android team. So your webserver can perfectly run at localhost and from your Android app you can access it via http://10.0.2.2:8080.
What error do you get? If it's a forbidden error then it could be your httpd config file blocking your android. Can you tell from the error whether the problem is in your android application or a network connectivity error?