garethflowers/docker-ftp-server

Docker container exits with code 139 on Raspberry Pi Zero

bouldrini opened this issue · 3 comments

Hi,

i am using this image to run a docker container on a raspberry pi zero with an armv6l architectue.

services:
  ftp-server:
    container_name: raspi-ftp
    environment:
      - FTP_PASS=123
      - FTP_USER=bouldrini
    image: garethflowers/ftp-server:latest@sha256:711a1f7145c2f9f1899b36cd5e87473625e278a5b650cd57de4960a684876d30
    ports:
      - '20-21:20-21/tcp'
      - '40000-40009:40000-40009/tcp'
    volumes:
      - '/home/bouldrini/Docker/shared_volume:/home/user'

The container seems to run fine. The FTP Server is reachable in the network. I can connect using filezilla and upload files. Files seem to be persistent inside the container.

For some obscure reason the container dies as soon as a user drops the connection and the docker container exits with exit code 139.
I havnt been able to figure out why this happens!

docker logs raspi-ftp don't show any errors warnings. Ill provide the whole log here anyway:

addgroup: group 'bouldrini' in use
adduser: user 'bouldrini' in use
chpasswd: password for 'bouldrini' changed
Wed May 31 20:48:41 2023 [pid 20] FTP response: Client "172.18.0.1", "530 Please login with USER and PASS."
Wed May 31 20:48:41 2023 [pid 20] FTP command: Client "172.18.0.1", "USER bouldrini"
Wed May 31 20:48:41 2023 [pid 20] [bouldrini] FTP response: Client "172.18.0.1", "331 Please specify the password."
Wed May 31 20:48:41 2023 [pid 20] [bouldrini] FTP command: Client "172.18.0.1", "PASS <password>"
Wed May 31 20:48:41 2023 [pid 19] [bouldrini] OK LOGIN: Client "172.18.0.1"
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP response: Client "172.18.0.1", "230 Login successful."
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP command: Client "172.18.0.1", "OPTS UTF8 ON"
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP response: Client "172.18.0.1", "200 Always in UTF8 mode."
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP command: Client "172.18.0.1", "PWD"
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP response: Client "172.18.0.1", "257 "/" is the current directory"
Wed May 31 20:48:41 2023 [pid 20] FTP response: Client "172.18.0.1", "530 Please login with USER and PASS."
Wed May 31 20:48:41 2023 [pid 20] FTP command: Client "172.18.0.1", "USER bouldrini"
Wed May 31 20:48:41 2023 [pid 20] [bouldrini] FTP response: Client "172.18.0.1", "331 Please specify the password."
Wed May 31 20:48:41 2023 [pid 20] [bouldrini] FTP command: Client "172.18.0.1", "PASS <password>"
Wed May 31 20:48:41 2023 [pid 19] [bouldrini] OK LOGIN: Client "172.18.0.1"
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP response: Client "172.18.0.1", "230 Login successful."
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP command: Client "172.18.0.1", "OPTS UTF8 ON"
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP response: Client "172.18.0.1", "200 Always in UTF8 mode."
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP command: Client "172.18.0.1", "PWD"
Wed May 31 20:48:41 2023 [pid 21] [bouldrini] FTP response: Client "172.18.0.1", "257 "/" is the current directory"
Wed May 31 20:51:17 2023 [pid 62] CONNECT: Client "172.18.0.1"
Wed May 31 20:51:17 2023 [pid 62] FTP response: Client "172.18.0.1", "220 FTP Server"
Wed May 31 20:51:17 2023 [pid 62] FTP command: Client "172.18.0.1", "AUTH TLS"
Wed May 31 20:51:17 2023 [pid 62] FTP response: Client "172.18.0.1", "530 Please login with USER and PASS."
Wed May 31 20:51:17 2023 [pid 62] FTP command: Client "172.18.0.1", "AUTH SSL"
Wed May 31 20:51:17 2023 [pid 62] FTP response: Client "172.18.0.1", "530 Please login with USER and PASS."
Wed May 31 20:51:17 2023 [pid 62] FTP command: Client "172.18.0.1", "USER bouldrini"
Wed May 31 20:51:17 2023 [pid 62] [bouldrini] FTP response: Client "172.18.0.1", "331 Please specify the password."
Wed May 31 20:51:17 2023 [pid 62] [bouldrini] FTP command: Client "172.18.0.1", "PASS <password>"
Wed May 31 20:51:18 2023 [pid 61] [bouldrini] OK LOGIN: Client "172.18.0.1"
Wed May 31 20:51:18 2023 [pid 63] [bouldrini] FTP response: Client "172.18.0.1", "230 Login successful."
Wed May 31 20:51:18 2Wed May 31 20:51:17 2023 [pid 62] CONNECT: Client "172.18.0.1"
Wed May 31 20:51:17 2023 [pid 62] FTP response: Client "172.18.0.1", "220 FTP Server"
Wed May 31 20:51:17 2023 [pid 62] FTP command: Client "172.18.0.1", "AUTH TLS"
Wed May 31 20:51:17 2023 [pid 62] FTP response: Client "172.18.0.1", "530 Please login with USER and PASS."
Wed May 31 20:51:17 2023 [pid 62] FTP command: Client "172.18.0.1", "AUTH SSL"
Wed May 31 20:51:17 2023 [pid 62] FTP response: Client "172.18.0.1", "530 Please login with USER and PASS."
Wed May 31 20:51:17 2023 [pid 62] FTP command: Client "172.18.0.1", "USER bouldrini"
Wed May 31 20:51:17 2023 [pid 62] [bouldrini] FTP response: Client "172.18.0.1", "331 Please specify the password."
Wed May 31 20:51:17 2023 [pid 62] [bouldrini] FTP command: Client "172.18.0.1", "PASS <password>"
Wed May 31 20:51:18 2023 [pid 61] [bouldrini] OK LOGIN: Client "172.18.0.1"
Wed May 31 20:51:18 2023 [pid 63] [bouldrini] FTP response: Client "172.18.0.1", "230 Login successful."
Wed May 31 20:51:18 2023 [pid 63] [bouldrini] FTP command: Client "172.18.0.1", "OPTS UTF8 ON"
Wed May 31 20:51:18 2023 [pid 63] [bouldrini] FTP response: Client "172.18.0.1", "200 Always in UTF8 mode."
Wed May 31 20:51:18 2023 [pid 63] [bouldrini] FTP command: Client "172.18.0.1", "PWD"
Wed May 31 20:51:18 2023 [pid 63] [bouldrini] FTP response: Client "172.18.0.1", "257 "/" is the current directory"
023 [pid 63] [bouldrini] FTP command: Client "172.18.0.1", "OPTS UTF8 ON"
Wed May 31 20:51:18 2023 [pid 63] [bouldrini] FTP response: Client "172.18.0.1", "200 Always in UTF8 mode."
Wed May 31 20:51:18 2023 [pid 63] [bouldrini] FTP command: Client "172.18.0.1", "PWD"
Wed May 31 20:51:18 2023 [pid 63] [bouldrini] FTP response: Client "172.18.0.1", "257 "/" is the current directory"

Do you have an idea why this is happening or how to debug it ?

@bouldrini I'm seeing this as well - have you discovered anyway around this?

This happens to me too an a virtual server. As soon as the user drops the ftp connection via quit/bye/exit the container exits with code 139.

Confirmed this issue on a Raspberry Pi 4 as well. Maybe something to do with the way child processes are being exited.