lftp problem to upload files in runner gitlab-ci,yml - gitlab

this message return on upload file:
$ lftp -c "debug; set ftp:ssl-force true; set ssl:verify-certificate false; open -u $FTP_HOST_DEPLOY_USERNAME,$FTP_HOST_DEPLOY_PASSWORD $FTP_HOST_DEPLOY; mirror -Renv ./dist/app ./public_html"
---- Resolving host address...
---- IPv6 is not supported or configured
---- 1 address found: 145.14.145.229
---- Connecting to [MASKED] (145.14.145.229) port 21
**** Socket error (Operation timed out) - reconnecting
---- Closing control socket
---- Connecting to [MASKED] (145.14.145.229) port 21
**** Socket error (Operation timed out) - reconnecting
---- Closing control socket
---- Connecting to [MASKED] (145.14.145.229) port 21
**** Socket error (Operation timed out) - reconnecting
---- Closing control socket
---- Connecting to [MASKED] (145.14.145.229) port 21
**** Socket error (Operation timed out) - reconnecting
---- Closing control socket
---- Connecting to [MASKED] (145.14.145.229) port 21

Related

server closed the connection unexpectedly python

server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
and when I run with docker exec ...
psql: error: could not connect to server: could not translate
host name "potgres" to address: No address associated with hostname
my port seems like that :
0.0.0.0:5431->5431/tcp, 5432/tcp
even when I change port number in file.yml , there is nothing happen!
Are you sure you spelled your hostname correctly?
psql: error: could not connect to server: could not translate
host name "potgres" to address: No address associated with hostname
It looks like you misspelled postgres as potgres.

Nodejs: Handshake terminated by server: 403 rabbitmq

I am trying to connect to rabbitmq broker (rabbitmq-server-3.8.0) by nodejs and amqplib/callback_api library so after install amqplib library with :
npm i amqplib
I wrote this code :
const amqp = require("amqplib/callback_api");
amqp.connect('amqp://guest:guest#xxxx:5672', (err, conn) => {
if (err) throw err;
else console.log(`Connect to brocker success!`);
})
As official site say:
By default, the guest user is prohibited from connecting from remote hosts; it can only connect over a loopback interface (i.e. localhost).
It is possible to allow the guest user to connect from a remote host by setting the loopback_users configuration to none.
In %APPDATA%\RabbitMQ\ location of my broker server it did not exist rabbitmq.conf file so i'd created this file just by this content:
loopback_users = none
C:\Users\tazik.WIN-LKH5BTVHRCM\AppData\Roaming\RabbitMQ>dir
Volume in drive C has no label.
Volume Serial Number is A852-F618
Directory of C:\Users\tazik.WIN-LKH5BTVHRCM\AppData\Roaming\RabbitMQ
10/13/2019 11:39 AM <DIR> .
10/13/2019 11:39 AM <DIR> ..
10/12/2019 02:05 PM 3 advanced.config
10/13/2019 11:41 AM <DIR> db
10/12/2019 02:07 PM 23 enabled_plugins
10/13/2019 10:37 AM <DIR> log
10/13/2019 10:22 AM 21 rabbitmq.conf
3 File(s) 47 bytes
4 Dir(s) 116,768,235,520 bytes free
C:\Users\tazik.WIN-LKH5BTVHRCM\AppData\Roaming\RabbitMQ>
Now after run nodejs code i still got this error:
2019-10-13 10:37:46.818 [info] <0.895.0> accepting AMQP connection <0.895.0> (94.182.192.28:25759 -> *********:5672)
2019-10-13 10:37:46.834 [error] <0.895.0> Error on AMQP connection <0.895.0> (94.182.192.28:25759 -> ******:5672, state: starting):
PLAIN login refused: user 'guest' can only connect via localhost
2019-10-13 10:37:46.849 [info] <0.895.0> closing AMQP connection <0.895.0> (94.182.192.28:25759 -> ******:5672)
Have you restarted after configuration? Also, check if RABBITMQ_CONFIG_FILE env is set to the location you placed the config file:
Open the "RabbitMQ Command Prompt (sbin dir)"
.\rabbitmq-service.bat stop
.\rabbitmq-service.bat remove
Run the following commands in the previous shell:
.\rabbitmq-service.bat install
.\rabbitmq-service.bat start
After that, you should be able to connect

Failed to establish initial TCP/IP connection (Chilkat-Python)

I'm trying to send a file from raspberry pi to my Windows pc using python-chilkat module. However it is returning this kind of error:
ChilkatLog: Connect_Ssh: DllDate: Dec 21 2018 ChilkatVersion: 9.5.0.76
UnlockPrefix: 30-day trial Architecture: Little Endian; 32-bit
Language: armhf linux Python 3.* VerboseLogging: 0 connectInner:
hostname: 192.168.1.4 port: 22 sshConnect:
connectSocket:
connect_ipv6_or_ipv4:
getsockopt indicates an error.
socketErrno: 111
socketError: Connection refused
--connect_ipv6_or_ipv4
connect_ipv6_or_ipv4:
getsockopt indicates an error.
socketErrno: 111
socketError: Connection refused
--connect_ipv6_or_ipv4
connect_ipv6_or_ipv4:
getsockopt indicates an error.
socketErrno: 111
socketError: Connection refused
--connect_ipv6_or_ipv4
connect_ipv6_or_ipv4:
getsockopt indicates an error.
socketErrno: 111
socketError: Connection refused
--connect_ipv6_or_ipv4
--connectSocket
Failed to establish initial TCP/IP connection
hostname: 192.168.1.4
port: 22 --sshConnect
--connectInner Failed.
--Connect_Ssh
--ChilkatLog
Can someone explain to me why Im getting these error?
See this online example which experiments with different failure cases to see what errors are returned: https://www.example-code.com/chilkat2-python/socket_connect_fail.asp
In some of the test cases, you'll see "connection rejected" which is the same as "connection refused". In other cases you'll get a timeout. The cases that result in "connection rejected" are the most likely causes for the failure.
PS> I understand that the example I'm pointing to is for a simple TCP socket connection, but SSH begins with a simple TCP connection, and that is what is failing.

Redis - server closed the connection / can't connect

I'm trying to get redis running locally. It works fine sometimes, but sometimes I have this problem when starting it. It appears to start fine, but then I can't make any connections to it or use the command line tool. I can't understand why there would be no errors when starting redis, it says its running on 6379, but won't respond on that port.
Toms-MBP:tinder-art tomchambers$ redis-server
[86521] 23 Apr 18:37:22.427 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
[86521] 23 Apr 18:37:22.429 * Increased maximum number of open files to 10032 (it was originally set to 256).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 2.8.19 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in stand alone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 86521
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
[86521] 23 Apr 18:37:22.431 # Server started, Redis version 2.8.19
[86521] 23 Apr 18:37:22.432 * DB loaded from disk: 0.000 seconds
[86521] 23 Apr 18:37:22.432 * The server is now ready to accept connections on port 6379
Toms-MBP:tinder-art tomchambers$ redis-cli monitor
Error: Server closed the connection
^CToms-MBP:tinder-art tomchambers$ node app.js
Connecting to local redis
Connecting to local redis
Server started 3000
Redis error: [Error: Ready check failed: Redis connection to 127.0.0.1:6379 failed - read ECONNRESET]
Redis error: [Error: Redis connection to 127.0.0.1:6379 failed - read ECONNRESET]
Redis error: [Error: Ready check failed: Redis connection to 127.0.0.1:6379 failed - read ECONNRESET]
Redis error: [Error: Redis connection to 127.0.0.1:6379 failed - read ECONNRESET]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]
Redis error: [Error: Ready check failed: Redis connection gone from end event.]

OperationalError: could not connect to server: Permission denied tTCP/IP connections on port 5432?

I can able to connect postgres from terminal as well as python manage.py dbshell command
But when i'm trying to connect from apache i'm Getting error as follows.
Error : OperationalError: could not connect to server: Permission denied
Is the server running on host "192.168.1.10" and accepting
TCP/IP connections on port 5432?
My listen Address on postgress conf file is 192.168.1.10 Address
pg_hg_cong allowed host all all 192.168.0.0/24 trust
And also selinux turned httpd_can_network_connect_db on
Port is listening on 192.168.1.10:5432 on netstat output.
And database's are storing in /tmp directory
wxrwxrwx. 1 postgres postgres 0 Dec 18 07:40 .s.PGSQL.5432
-rw-------. 1 postgres postgres 50 Dec 18 07:40 .s.PGSQL.5432.lock
Actually I have enabled selinux httpd_can_network_connect_db parameters on db server instead of web server
So issue got solved after enabling httpd_can_network_connect_db on web server

Resources