-
I can add that I also followed this, since it said I had to have a "docker aware executor". https://docs.onedev.io/tutorials/cicd/build-docker-image
-
Sorry for my username, I originally only created this account to test OneDev before installing it myself.
No problem for the user name at all.
As to SCP step not working, how is the executor
internaldefined? Is it a server docker executor? If so, you may run a test image (ubuntufor instance) via docker from terminal directly on the server running OneDev, and runtelnet <your ssh host> 22(you may need to install telnet on ubuntu image) to see if it is working. If not, either ssh host is specified incorrectly, or there is some networking issue at your side. -
The
internalexecutor is set up a according to https://docs.onedev.io/tutorials/cicd/build-docker-image.

I ran an Ubuntu image on the same server as OneDev runs on:
sudo docker run -ti --rm ubuntu /bin/bash root@7b06e2dfbad1 apt update root@7b06e2dfbad1 apt install telnet root@7b06e2dfbad1 telnet *servername* 22 Trying *IP-adress* Connected to *servername* -
Please continue to test on server as below:
docker create network test docker run -it --rm --network=test 1dev/ssh-client:1.0.0 shThen inside the container, run below:
apk add busybox-extras telnet <your server> 22 -
Had to run
docker network create testinstead ofdocker create network testThis gives me a
Connection refused.telnet: can't connect to remote host (127.0.1.1): Connection refused -
I can ping my server from the container, though.

-
Ah. If I use my server's public IP, instead of it's DNS name, it seems to allow me to telnet it.
-
127.0.1.1is the local address. It is odd that your host name resolves to that address. You may test with ubuntu image in that network to see what happens. -
I tested the scp step in my buildspec now, using the public IP instead of the hostname. It seems to work, but sadly it won't transfer directories, only files.
I can't seem to find an option to use the
-rswitch on scp, which allows it to upload directories.Thank you anyways, you have been of great help!
-
Previous Value Current Value Open
Closed
-
No problem. I filed an improvement request to add scp
-roption for directory copying (#1416) -
I was able to jerry-rig it to work by adding
-rto the source like this:
-
Yes, OneDev just concatenates source field literally into scp command. An extra explicit options field will make this step easier to use.
| Type |
Question
|
| Priority |
Normal
|
| Assignee |
Sorry for my username, I originally only created this account to test OneDev before installing it myself.
When trying to upload via SCP to a server, it just refuses to. I always get
port 22: Connection refused. I've been stuck on this for a few hours now. I also tried just uploading to my server via a docker image runningkroniak/ssh-client. That also didn't work.Thank you.