I am trying to update my Web Host Manager and other applications on my instance and now I am getting errors when using "CURL" or "WGET".
> Executing /usr/local/directadmin/plugins/custombuild/admin/build
> imagemagickDownloading ImageMagick-7.0.8-46.tar.gz...
> --2019-10-13 16:39:46-- http://files.directadmin.com/services/custombuild/imagick/ImageMagick-7.0.8-46.tar.gz
> Resolving files.directadmin.com (files.directadmin.com)...
> 69.162.69.58, 104.128.54.74, 185.42.221.168 Connecting to files.directadmin.com (files.directadmin.com)|69.162.69.58|:80...
> failed: Connection timed out. Connecting to files.directadmin.com
> (files.directadmin.com)|104.128.54.74|:80... failed: Connection timed
> out. Connecting to files.directadmin.com
> (files.directadmin.com)|185.42.221.168|:80... failed: Connection timed
> out. Retrying.
I have already check to make sure none of the IPs and domains are blocked by the GCS firewall and the instances software firewalls but none of the attempt to connnect to external hosts via CLI are working. I am not able to complete any updates to the host outside of GCS network. Downloading and uploading to the instance via FTP or SFTP is much too slow.
It is not the scripts nor PHP because no connections to remote hosts are being accepted.
Related
I'm using RDS MySQL from AWS and it works on a local machine I can successfully login to Django admin using the same db also can migrate and etc. But the problem is when I deployed this project with the same settings with EB CLI via ec2 instance, the project loaded successfully.
except for the db operations, that does not work properly. I can't log in into admin, and that gives 504 Gateway Time-out
That takes 60 sec to process the request but fails every time. But db operations are working on the local machines.
For example, I tried making a GET request from localhost using the same db
/api/v1/categories/1/ that gives me `200 response
But when I tried from the same project hosted on ec2 instance it gives 504 response
These are the eb configurations:
packages:
yum:
python3-devel: []
mariadb-devel: []
option_settings:
aws:elasticbeanstalk:application:environment:
DJANGO_SETTINGS_MODULE: config.settings
aws:elasticbeanstalk:container:python:
WSGIPath: config.wsgi:application
Some suggest increasing HTTP request processing time. But why does it's taking too long but works on the remote connection locally? from the local Django settings.
Are there any extra settings to set up to handle this problem? Or what might be the solution could be?
EDIT: This is what I get on the eb.logs while making the request
2022/03/09 07:19:05 [error] 18456#18456: *384 upstream timed out (110: Connection timed out) while reading response header from
upstream, client: 172.31.23.83, server: , request: "POST
/admin/login/?next=/admin/ HTTP/1.1", upstream:
"http://127.0.0.1:8000/admin/login/?next=/admin/", host:
"site.ap-south-1.elasticbeanstalk.com", referrer:
"http://site.ap-south-1.elasticbeanstalk.com/admin/login/?next=/admin/"
I recently installed vsftpd on a server at my home for local development utilizing CentOS7. I went through the setup, and enabled passive mode, set up my ports, put my port forwarding on in my router, and then when I go to connect through PhpStorm, it rejects the connection.
I'm not sure what's going on, I've tried enabling Anonymous login, using a user, root. Nothing seems to work. Please let me know any information I can add.
The result from Test Connection is as follows:
Connection to '10.0.0.110' failed.
Connection to FTP server on "10.0.0.110" rejected.
Here are results from a FileZilla attempt.
Status: Connecting to 10.0.0.110:40000...
Status: Connection established, waiting for welcome message...
Response: 500 OOPS: failed to open xferlog log
ile:/var/log/vsftpd/vsftpd.log
Error: Critical error: Could not connect to server
Alright, so here is the answer, after looking in to what #LazyOne posted. I needed to change permissions as the first step. chmod 644 / 755 for files / dirs.
After that, I added in a listen_port=40000 to my vsftpd.conf file.
Then, I added in port_enable, pasv_address=<my internal ip address for my server> and lastly, pasv_addr_resolve=NO, as I have a static IP on my server.
I also added additional ports to the passive settings 40000-40500, as I've read this will allow multiple connections and will solve another error I was having.
After all of this, I opened up the ports in my server firewall-cmd --add-port=40000-40500/tcp --permanent, and added port forwarding in my router to allow this.
After all was said and done, I was finally able to connect to my FTP.
Hopefully this will help someone.
I have bought a basic 6$ pythonanywhere server which allows for SCP and SSH connections to their servers. I have deployed my flask application (REST API) to the server and set up a local environment (installed packages, set up path and environmental variables). I ran the app, and it gives me the 404 page on the / route which is actually a sign that it is working.
However when I try to hit a route like /api/users/3 for example, it gives me an error 500 (internal server error). I dug around some log files on the server and found one which is basically the output of the WSGI web server which is host to my flask application. It said that there is an issue with the database communication. From what I understand, it connected successfully but it couldn't query the data from the table:
(1044, "Access denied for user 'secret_username'#'%' to database 'test'")
I have tried to fix this through the web mysql console by giving my <secret_username>#secret_username.pythonanywhere.com all the privilages to test.*, but it gives me an access error once again. I tried to SSH into the machine that is host to the mysql server and tried to connect to it - secret_username.mysql.pythonanywhere-services.com but it doesn't allow me to ssh into this server.
Has anyone experienced this issue? I am almost sure that my connection is set up correctly because if it didn't establish connection it would give me an access error with message `using password "yes". I've read on forums a bit, they suggest installing a mysql server on the same server as the flask application, but I don't have access to sude for some reason, probably due to my cheap plan. Any ideas?
If you are using the MySQL database provided by PythonAnywhere, with the hostname secret_username.mysql.pythonanywhere-services.com, then your database will be called secret_username$test, not just test -- see the "Databases" page on the PythonAnywhere website.
I am trying to start sync_gateway from cmd with following command:
sync_gateway -url http://75.76.221.21:8091
I received following error:
20:33:23.014229 WARNING: Error installing Couchbase design doc: Put
http://192.168.2.102:8092/sync_gateway/_design/sync_gateway: dial tcp
192.168.2.102:8092: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to
respond. -- db.installViews() at database.go:29120:33:44.055739
WARNING: Error installing Couchbase design doc: Put
http:/_design/sync_housekeeping: dial tcp 192.168.2.102:8092:
ConnectExtcp: A connection attempt failed because the connected party
did not properly respond after a period of time, or established
connection failed because connected host has failed to respond. --
db.installViews() at database.go:30520:33:44.055739
FATAL: Error opening database: Put
192.168.2.102:8092/omnibazaar/_design/sync_housekeeping: dial tcp 192.168.2.102:8092: ConnectEx tcp: A connection attempt failed because the connected party did not properly respond after a period of time,
or established connection failed because connected host has failed to
respond. -- rest.RunServer() at config.go:415
How did you name your nodes in your Couchbase instance? If you look at the Server Nodes tab, is one of your nodes named "192.168.2.102". I see that from your sync gateway machine, you are trying to reach the Couchbase cluster using the 75.76.221.21 address. Have you checked network connectivity, from your sync gateway machine, try "telnet 192.168.2.102 8092" and see if it connects.
One other thing, it is more common to start sync gateway by redirecting in a configuration file, you can find them in the examples directory. For instance "sync_gateway < examples/config-server.json"
I am attempting to connect to a remote MySQL database using DreamFactory app.
This is what I am doing:
http://i.imgur.com/S9WHZ5i.png
And this is the error I see in the Dreamfactory app log:
[2014-06-14 09:47:53] app.ERROR: REST Exception #500 > Failed to
launch service "myservice": CDbConnection failed to open the DB
connection.
{"host":"myaddress","request_uri":"/rest/myapp","source_ip":"...","sapi_name":"apache2handler"}
[] [2014-06-14 09:47:53] app.ERROR: SQLSTATE[HY000] [2003] Can't
connect to MySQL server on '...' (111) [] []
I checked on my MySQL machine for any access attempts and I see none.
I think I configured something wrong in the Dreamfactory Admin screens.
Please help!
Many thanks!
User has answered his own question. Had to enable incoming connections within his Amazon EC2 instance. Just a heads up to others having the same issue out there.
Thanks,
Mark