Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker container exits with code 139 on Raspberry Pi Zero #47

Closed
bouldrini opened this issue May 31, 2023 · 3 comments · Fixed by #63
Closed

Docker container exits with code 139 on Raspberry Pi Zero #47

bouldrini opened this issue May 31, 2023 · 3 comments · Fixed by #63
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@bouldrini
Copy link

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 bouldrini changed the title Docker container exits with 139 Docker container exits with 139 on Raspberry Pi Zero May 31, 2023
@bouldrini bouldrini changed the title Docker container exits with 139 on Raspberry Pi Zero Docker container exits with code 139 on Raspberry Pi Zero May 31, 2023
@btoconnor
Copy link

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

@KUZJurk
Copy link

KUZJurk commented Aug 14, 2023

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.

@garethflowers
Copy link
Owner

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

@garethflowers garethflowers added bug Something isn't working help wanted Extra attention is needed labels Sep 13, 2023
@garethflowers garethflowers self-assigned this Sep 13, 2023
@garethflowers garethflowers linked a pull request Sep 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants