You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running kunde21/gitea-arm:v1.13.1 in portainer (part of OMV 5 install) on raspberry pi 4b.
I am getting the following error in the container log:
Could not load host certificate "/data/ssh/ssh_host_ed25519_cert": No such file or directory
Could not load host certificate "/data/ssh/ssh_host_rsa_cert": No such file or directory
Could not load host certificate "/data/ssh/ssh_host_ecdsa_cert": No such file or directory
Could not load host certificate "/data/ssh/ssh_host_dsa_cert": No such file or directory
Bind to port 22 on :: failed: Address in use.
Bind to port 22 on 0.0.0.0 failed: Address in use.
Cannot bind any address.
i do see that openssh is running:
ash-5.0# ps aux
PID USER TIME COMMAND
1 root 0:00 /bin/s6-svscan /etc/s6
17 root 0:12 s6-supervise openssh
18 root 0:00 s6-supervise gitea
20 git 1:16 /app/gitea/gitea web
274 root 0:00 bash
1114 git 0:00 bash
6020 git 0:00 bash
21396 root 0:00 bash
21530 root 0:00 ps aux
bash-5.0#
And port 22 is open and someone is listening:
ash-5.0# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:32401 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.53:domain 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
However when i look at docker ps I notice no ports being announced. May be a portainer thing.
klmcw@pinas1:~ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8e60b710dc2b kunde21/gitea-arm:v1.13.1 "/usr/bin/entrypoint…" 53 minutes ago Up 53 minutes gitea
40aa4f207472 ghcr.io/linuxserver/plex:arm32v7-bionic "/init" 3 weeks ago Up 7 hours plex
df8a503b52c3 portainer/portainer-ce "/portainer" 3 weeks ago Up 7 hours 0.0.0.0:8000->8000/tcp, 0.0.0.0:9000->9000/tcp portainer
The portainer UI does recognize the EXPOSEd ports correctly: 22 3000.
But I wanted to check with you first to make sure I am using your docker image correctly.
I did follow the instructions at SSH container passthrough.
However, this has no effect, of course, unless something is listening on the host port (1022 in my case).
Do you have any ideas? Am I missing something starting your image?
Thanks.
-k
The text was updated successfully, but these errors were encountered:
I haven't attempted this setup, to be honest. The gitea forum or discord might be a better source of advice on it. I've done nothing to change the config or ssh server in this image, so I doubt it's specific to the image.
Having said that, the first thing that jumps out at me is you're attempting to bind to a low port while running as non-root (1022:1022) user. Try using a high port inside the container, in case that's the issue: SSH_PORT = 2222 and
Running kunde21/gitea-arm:v1.13.1 in portainer (part of OMV 5 install) on raspberry pi 4b.
I am getting the following error in the container log:
i do see that openssh is running:
And port 22 is open and someone is listening:
However when i look at
docker ps
I notice no ports being announced. May be a portainer thing.The portainer UI does recognize the EXPOSEd ports correctly: 22 3000.
But I wanted to check with you first to make sure I am using your docker image correctly.
Note I am using a modified version of your docker-compose.yml.
Mine looks like this:
I did follow the instructions at SSH container passthrough.
However, this has no effect, of course, unless something is listening on the host port (1022 in my case).
Do you have any ideas? Am I missing something starting your image?
Thanks.
-k
The text was updated successfully, but these errors were encountered: