Comments (10)
Hi @delfer,
Good news, we solved this issue by disabling RHEL internal firewall systemctl stop firewalld
Company uses a lot of external firewalls so there is no rule for RHEL internal firewall. As we are actually running in a new sandbox environment, firewall was activated.
However, firewalld
should stay enabled systemctl enable firewalld
When we did systemctl disable firewalld
following error occurs: ftp: Can't connect to 'XXX.XXX.XXX.XXX:XXX:XXX': No route to XXX
from docker-alpine-ftp-server.
On Linux Mint 21 vsftpd
process does not start at all. I used same command as @BenasB and container starts. But when I run ps
command in container I see there is no vsftpd
process running:
/ # ps
PID USER TIME COMMAND
1 root 0:00 /sbin/tini -- /bin/start_vsftpd.sh
7 root 0:00 pidproxy /var/run/vsftpd/vsftpd.pid true
36 root 0:00 sh
42 root 0:00 ps
If I start vsftpd /etc/vsftpd/vsftpd.conf
manually in container and try to connect to ftp, it does not allow you to download or upload files:
Connected to localhost.
220 Welcome Alpine ftp server https://hub.docker.com/r/delfer/alpine-ftp-server/
Name (local-ftp:se): one
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
229 Entering Extended Passive Mode (|||34886|)
ftp: Can't connect to `127.0.0.1:34886': В соединении отказано
500 Illegal PORT command.
ftp: Can't bind for data connection: Адрес уже используется
ftp> put www.asus.com.txt
local: www.asus.com.txt remote: www.asus.com.txt
500 Illegal PORT command.
from docker-alpine-ftp-server.
Does ps
show background processes? As I understand, vsftpd
runs as a background process and a proxy runs in the foreground just so it does not kill the container (docker exits the container when the entrypoint command exits)
from docker-alpine-ftp-server.
Similar problem, I start the container, the container gives no error messages what so ever and doesn't exit. But I can't connect and the vsftp process doesn't seam to exist. And no logs are generated. I have seen this problem with multiple docker-images. Could this be a problem with vsftpd? Maybe the vsftpd container died silently in the background?
from docker-alpine-ftp-server.
Hi everyone,
Similar problem on RHEL8, except that error messages are a bit different and container is still alive:
Changing password for one
New password:
Retype password:
passwd: password for one changed by root
pidfd_open syscall is not supported, falling back to polling
failed to watch for direct child exit (pidfd_open error): Function not implemented
got signal 15
process has died, quitting
deluser: can't find one in /etc/group
from docker-alpine-ftp-server.
Hello! Which version of Docker do you use? It can be an issue for versions older then 20.10.0 moby/moby#41665
from docker-alpine-ftp-server.
Thanks for your quick reply!
I'm using a newer version, please find here Docker details:
Client: Docker Engine - Community
Version: 24.0.4
API version: 1.43
Go version: go1.20.5
Git commit: 3713ee1
Built: Fri Jul 7 14:52:00 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.4
API version: 1.43 (minimum version 1.12)
Go version: go1.20.5
Git commit: 4ffc614
Built: Fri Jul 7 14:51:01 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.21
GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc:
Version: 1.1.7
GitCommit: v1.1.7-0-g860f061
docker-init:
Version: 0.19.0
GitCommit: de40ad0
EDIT: I used docker image on Ubuntu 22.04.2 LTS and it works fine
from docker-alpine-ftp-server.
Hi,
We tried again on Ubuntu 22.04.2: everything works well BUT container logs are similar with logs of container running on RHEL8. I don't understand what's happening: no log about pidfd_open
syscall, but user can't be find in /etc/group.
When I type pstree
in both containers shell (running on RHEL8 and Ubuntu), vsftpd
appears.
Logs of container running on Ubuntu:
Changing password for one
New password:
Retype password:
passwd: password for one changed by root
got signal 15
monitored pid 29 exited, quitting
deluser: can't find one in /etc/group
EDIT: I took a look this morning with a colleague, it seems that error found in container's logs about user not found in /etc/group
is due to vsftpd
is using virtual users. So there is no link with docker image is running well on Ubuntu and doesn't work on RHEL.
from docker-alpine-ftp-server.
@anne-mrl do you have enabled selinux on Centos? Can you try to disable it?
sestatus
sudo setenforce 0
# Open the /etc/selinux/config file and set the SELINUX mod to disabled
sudo shutdown -r now
sestatus
from docker-alpine-ftp-server.
@anne-mrl do you have enabled selinux on Centos? Can you try to disable it?
sestatus sudo setenforce 0 # Open the /etc/selinux/config file and set the SELINUX mod to disabled sudo shutdown -r now sestatus
I forgot to write it but we also tried this last week, same result it doesn't work
from docker-alpine-ftp-server.
Related Issues (20)
- How do I map a volume on the Docker host? HOT 2
- Container dies after: "adduser: user 'ftp_user' in use" HOT 2
- enable some additional features to be set by variable? HOT 1
- client connect failed HOT 1
- Cant store files when starting integration test on gitlab runner HOT 1
- default configuration does not list dot files (so called "hidden" files) via NLST HOT 2
- container undeterministically dies directly after startup HOT 6
- There is an error in the FTPS documentation HOT 1
- Remove TLSv1 Support HOT 3
- Why is there only "latest" tag on DockerHub? HOT 1
- Container error illegal character with code 34 at position 0 HOT 1
- no connection with letsencrypt cert HOT 3
- what is use of volume ftp/ftp is in dockerfile? HOT 3
- environment seems wrong
- How set read-only permission? HOT 1
- mkdir: can't create directory '/ftp/admin': I/O error
- Change base image to 3.16.9 HOT 3
- Random '500 OOPS: failed to open vsftpd log file:/proc/1/fd/1' HOT 1
- Passive mode error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-alpine-ftp-server.