Error: Error allocating IP address. Cause: 400 Error - fiware

When I try to allocate a new IP for an instance I get this error:
Error allocating IP address. Cause: 400 Error
{"badRequest": {"message": "No more floating ips in pool net8300.", "code": 400}}
Pool full?

Related

Facing a SMTP ERROR on phpmailer all of a sudden

My PHPMAILER script has been working fine until couple days ago with the following message - nothing has changed as far as I am aware
Any idea ?
Thanks
SSL loaded Server -> Client: +OK <30126.1635064119#pop.w14.httpserveur.net> Server -> Client: +OK Server -> Client: +OK Server -> Client:
debug level 3; message: Connection: opening to ssl://46.105.44.1:465, timeout=300, options=array()
debug level 3; message: Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [/home/clients/cineferte.fr/http/mail/phpmailer/phpmailer/src/SMTP.php line 394]
debug level 3; message: Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/clients/cineferte.fr/http/mail/phpmailer/phpmailer/src/SMTP.php line 394]
debug level 3; message: Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://46.105.44.1:465 (Unknown error) [/home/clients/cineferte.fr/http/mail/phpmailer/phpmailer/src/SMTP.php line 394]
debug level 1; message: SMTP ERROR: Failed to connect to server: (0)
debug level 3; message: SMTP connect() failed.
https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Message could not be sent. Mailer Error: SMTP connect() failed.

getaddrinfo failed while trying to connect to the database

My hosting provider is giving me a host for my database.
But I can't access this host from my symfony project:
An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known
here is my .env:
DATABASE_URL=mysql://esoh_metask:mypassword#esoh.myd.infomaniak.com:3306/esoh_task_db
When i ping my host, i get an error saying that is it not known.
The hostname esoh.myd.infomaniak.com resolves to the IP address 10.4.27.10.
10.*.*.* addresses are all for private use within data centers. So, if you're trying to run your symfony program on your own machine (office or home) you won't be able to reach that MySQL server -- it's behind a firewall at your vendor.
Ask your vendor for help.

phpmailer issue - smtp.office365.co.uk connection failed

I a, having issues with my phpmailer establishing a connection to office365
Can anybody help me debug this?
Thanks
2020-04-30 16:07:03 Connection: opening to ssl://smtp.office365.com:587, timeout=30, options=array ( )
2020-04-30 16:07:03 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number [/home/useraccount/public_html/hr/application/third_party/phpmailer/class.smtp.php line 293]
2020-04-30 16:07:03 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/useraccount/public_html/hr/application/third_party/phpmailer/class.smtp.php line 293]
2020-04-30 16:07:03 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://smtp.office365.com:587 (Unknown error) [/home/useraccount/public_html/hr/application/third_party/phpmailer/class.smtp.php line 293]
2020-04-30 16:07:03 SMTP ERROR: Failed to connect to server: (0)
2020-04-30 16:07:03 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Firstly, you are using an old version of PHPMailer, so get the latest version.
You have a TLS error because you're using ssl mode on a port expecting tls encryption mode, so change your code to this:
$mail->Host = 'smtp.office365.com';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
Read the docs the error message points you at, since this exact problem is covered in detail.

pre-login handshake SQL server 2014

I am getting the following error.
A connection was successfully established with the server, but then an
error occurred during the pre-login handshake. (provider: TCP Provider
The specified network name is no longer available) ((Microsoft SQL
Server, Error: 64).

How can I get more information on why my MySQL connection gets ECONNREFUSED?

I'm trying to use promise-mysql (node module) to connect to a MySQL instance, but it fails with ECONNREFUSED. Here's the entire error:
{ Error: connect ECONNREFUSED 172.18.0.6:3306
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
--------------------
at Protocol._enqueue (/usr/src/app/node_modules/mysql/lib/protocol/Protocol.js:141:48)
at Protocol.handshake (/usr/src/app/node_modules/mysql/lib/protocol/Protocol.js:52:41)
at Connection.connect (/usr/src/app/node_modules/mysql/lib/Connection.js:130:18)
at connect (/usr/src/app/node_modules/promise-mysql/lib/connection.js:18:33)
at /usr/src/app/node_modules/promise-mysql/lib/connection.js:52:9
at Promise._execute (/usr/src/app/node_modules/bluebird/js/release/debuggability.js:300:9)
at Promise._resolveFromExecutor (/usr/src/app/node_modules/bluebird/js/release/promise.js:483:18)
at new Promise (/usr/src/app/node_modules/bluebird/js/release/promise.js:79:10)
at new connection (/usr/src/app/node_modules/promise-mysql/lib/connection.js:51:12)
at Object.exports.createConnection (/usr/src/app/node_modules/promise-mysql/index.js:6:12)
at Context.<anonymous> (/usr/src/app/test/default-parameters.test.js:9:10)
at callFn (/usr/src/app/node_modules/mocha/lib/runnable.js:345:21)
at Hook.Runnable.run (/usr/src/app/node_modules/mocha/lib/runnable.js:337:7)
at next (/usr/src/app/node_modules/mocha/lib/runner.js:309:10)
at Immediate.<anonymous> (/usr/src/app/node_modules/mocha/lib/runner.js:339:5)
at runCallback (timers.js:666:20)
at tryOnImmediate (timers.js:639:5)
at processImmediate [as _immediateCallback] (timers.js:611:5)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '172.18.0.6',
port: 3306,
fatal: true }
I have no idea why this is happening. How can I get more information on why the connection is refused?
With "more information" I mean stuff like:
Is this because of invalid credentials?
Is the host unreachable?
Is the host reachable but the MySQL server down?
Are we hitting a MySQL connection limit?
Are there gnomes in my computer trying to make me mad?
Is this because of invalid credentials? No, that would result in an access denied error message.
Are we hitting a MySQL connection limit? No, that would result in too many connections error message.
Is the host unreachable? Is the host reachable but the MySQL server down? Yes, any of the two can cause this error message. The error message means that the client could not even reach the server (this error is generated by the client, the previous two error messages are generated by MySQL server).
As MySQL documentation on can't connect to MySQL says:
The error (2003) Can't connect to MySQL server on 'server' (10061) indicates that the network connection has been refused. You should check that there is a MySQL server running, that it has network connections enabled, and that the network port you specified is the one configured on the server.
Unfortunately, there is no way of telling based on the error message which of these caused the error, you need to manually investigate that.
I think host reachable but the MySQL server down.
check your MySQL server host and port is correct and check can able to access in local such as MySQL in terminal.