[Atom][Remote-ftp] Unable to connect ftps/ftpes [closed] - ftp

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
The community reviewed whether to reopen this question 7 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Below two issues I was facing while trying to create ftps connection.
421 Sorry, cleartext sessions are not accepted on this server.
Uncaught No protocol found in connection credential
It was solved after some config changes, which I'm putting in the answer. Same should work for ftpes.

Tried this and worked (see "secure" and "secureOptions" specifically):
{
"protocol": "ftp",
"host": "***FTP_HOSTNAME_HERE***",
"port": 21,
"user": "***YOUR_USERNAME_HERE***",
"pass": "***YOUR_PASSWORD_HERE***",
"promptForPass": false,
"remote": "***REMOTE_PATH_HERE***",
"secure": true,
"secureOptions": {"rejectUnauthorized": false, "requestCert": true, "agent": false},
"connTimeout": 10000, // integer - How long (in milliseconds) to wait for the control connection to be established. Default: 10000
"pasvTimeout": 10000, // integer - How long (in milliseconds) to wait for a PASV data connection to be established. Default: 10000
"keepalive": 10000, // integer - How often (in milliseconds) to send a 'dummy' (NOOP) command to keep the connection alive. Default: 10000
"watch":[]
}
Note that "protocol" should always be "ftp" for ftp/ftps/ftpes.

Related

Execute the program every 5 minutes with gocron [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I need to run my Co program continuously with five minute interval.
I tried using gocron but the program is not giving any output.
func hi() {
fmt.Println("hi")
}
func main() {
gocron.Every(5).Minute().Do(hi)
}
I expect this to run and print "hi" at every 5 min interval.
Your code is only setup a rule and immediately exits. You have to start the scheduler which will run the assigned jobs.
scheduler := gocron.NewScheduler(time.UTC)
scheduler.Every(5).Minute().Do(hi)
scheduler.StartBlocking()
This way the scheduler will block the program until its stopped (by Ctrl-C for example).
See the documentation for more info.

Is there a google API for "People also ask"? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Is there any API to access the people also ask questions in the google's search result list?
take a look in this example, my search query: what is google search
And google presents this other questions:
google alternative questions image
SerpApi seems to do it.
Source url : https://serpapi.com/search.json?q=How+do+you+earn+bitcoins%3F&location=Dallas&hl=en&gl=us&source=test
Look at the key related_questions
"related_questions": [
{
"question": "How can I get free Bitcoin?",
"snippet": "Earn Free Bitcoins Daily with No Investment from InternetOnline Home Income recommend to Earn Free Bitcoins as the number FIVE option because earning bitcoins is really easy and free to join.Check your BTC balance at any time through this address https://blockchain.info/address/<your own BTC address>.KIND ATTN:- You cannot get cash directly from Bitcoins… ... Earning example:More items...•Oct 9, 2018",
"title": "Earn Free Bitcoins Daily with No Investment from Internet",
"link": "https://www.onlinehomeincome.in/earn-free-bitcoins-daily.php",
"displayed_link": "https://www.onlinehomeincome.in/earn-free-bitcoins-daily.php"
},
{
"question": "How do you get bitcoins?",
"snippet": "Seventh, you can get bitcoins by accepting them as a payment for goods and services or by buying them from a friend or someone near you. You can also buy them directly from an exchange with your bank account. Eighth, there is a growing number of services and merchants accepting Bitcoin all over the world.",
"title": "5 Easy Steps To Get Bitcoins and Learning How To Use Them",
"link": "https://www.weusecoins.com/en/getting-started/",
"displayed_link": "https://www.weusecoins.com/en/getting-started/"
},
{
"question": "Can you make money on Bitcoin?",
"snippet": "Bitcoin is just like real money. For some strange reason, people tend to think that because Bitcoin is a new form of currency, there is some magical way you can earn Bitcoins or make money from it easily.Oct 10, 2018",
"title": "How to Get Bitcoins? 12 Ways for Making Money with Bitcoin in 2018",
"link": "https://99bitcoins.com/earn-bitcoins-fast-free/",
"displayed_link": "https://99bitcoins.com/earn-bitcoins-fast-free/"
},
{
"question": "What is Bitcoin and how it works?",
"snippet": "A transaction is a transfer of value between Bitcoin wallets that gets included in the block chain. Bitcoin wallets keep a secret piece of data called a private key or seed, which is used to sign transactions, providing a mathematical proof that they have come from the owner of the wallet.",
"title": "How does Bitcoin work? - Bitcoin - Bitcoin.org",
"link": "https://bitcoin.org/en/how-it-works",
"displayed_link": "https://bitcoin.org/en/how-it-works"
}

Gravitational teleport failing to record sessions on nodes [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 10 months ago.
Improve this question
I have been using ansible Playbooks to set up a teleport cluster. As of right now I have a cluster set up with 4 nodes (one of which acts as a proxy and auth server). For some reason when I try to playback the recorded sessions, they are all blank except for sessions on the Auth server. All sessions on the nodes show up on the log but when I attempt to play them they are just zero second recordings of nothing. I thought maybe it had something to do with the config file but I was unable to notice anything.
NOTE: below are the config files for the nodes and auth server. I have replaced some information with (Fake...)
Nodes Config file
teleport:
nodename: (Fake node name)
pid_file: /var/run/teleport.pid
auth_token: (Fake Auth token)
auth_servers:
- 192.168.1.121
connection_limits:
max_connections: 1000
max_users: 250
log:
output: stderr
severity: WARN
storage:
type: bolt
data_dir: /var/lib/teleport
auth_service:
enabled: "no"
ssh_service:
enabled: "yes"
listen_addr: 0.0.0.0:3022
proxy_service:
enabled: "no"
Teleport Auth config file
teleport:
nodename: (Fake Node Name)
pid_file: /var/run/teleport.pid
auth_token: (fake token)
auth_servers:
- 127.0.0.1:3025
connection_limits:
max_connections: 1000
max_users: 250
log:
output: stderr
severity: WARN
storage:
type: bolt
data_dir: /var/lib/teleport
auth_service:
enabled: "yes"
listen_addr: 0.0.0.0:3025
oidc_connectors: []
cluster_name: main
tokens:
- "node:(Fake token)"
ssh_service:
enabled: "yes"
listen_addr: 0.0.0.0:3022
proxy_service:
enabled: "yes"
listen_addr: 0.0.0.0:3023
web_listen_addr: 0.0.0.0:3080
tunnel_listen_addr: 0.0.0.0:3024
Fixed it, for some reason my auth server was on an older version of teleport than my nodes.

Tibco SQLException [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am encountering this error again and again in my tibco code.Somebody please tell how to solve this error
I am using tibco 5.7.3.
JDBC error reported: (SQLState = HY000) - java.sql.SQLException: [tibcosoftwareinc][SQLServer JDBC Driver]Object has been closed."
When a JDBC Query activity is configured to query in subset mode, the resultSet object is kept in the engine for subsequent iterations. Typically the resultSet object will only be closed and cleared from the engine if there is no more data left. However, keep in mind that the default connection idleTimeout is set to 5 minutes. This means that after 5 minutes of no activity the connection will get released. So if you wait longer than the idleTimeout value to retrieve subsequent subsets you will incur this exception since the connection has been closed and hence the resultset is no longer available.
Resolution:
Set Engine.DBConnection.idleTimeout to higher value in the Businessworks engine TRA file, say, 20 minutes so this connection can remain idle without getting released for next iterations for example: Engine.DBConnection.idleTimeout=20. For more details on this setting please see the list of Available Custom Engine Properties.

Windows TCP keepalive sending 1 byte messages with no PSH [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a traffic capture from what I believe is a windows client. I've noticed that from time to time it sends what are identified by Wireshark as "TCP Keep-Alive", but instead of just setting ACK and sending no data, it backs up SEQ by one octet and resends that data.
(C = client, S = server, relative seq / ack)
(connected, data transferred back and forth)
1 C: PSH Seq=21, Ack=41, Len=12
2 S: PSH ACK Seq=41, Ack=33, Len=12
3 C: ACK Seq=33, Ack=53
4 S: PSH ACK Seq=53, Ack=33, Len=1
5 C: ACK Seq=33, Ack=54
... 3 seconds pass ...
6 C: ACK Seq=32, Ack=54, Len=1 (resends the last octet from #1)
7 S: ACK Seq=54, Ack=33
...
Is this the normal behaviour for the windows stack when sending TCP keepalives?
That's what a keep-alive segment is. It isn't a separate piece of protocol, it's just a redundant send with a sequence number that has already been acknowledged, to provoke an ACK with the current sequence number in reply. There's no requirement that it set the PSH flag either.

Resources