pthread_create failed (EPERM) when I try to start version 8.0.0 and latest from docker-compose

See original GitHub issue

Hello everyone I am trying to start s3ninja through docker-compose, precisely the latest version and 8.0.0, but I have the following problem:

s3-ninja   | [0.014s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
s3-ninja   | [0.015s][error  ][gc,task  ] Failed to create worker thread

If I try an older version instead I can’t upload files through the ui (I’m talking about version 6)

my docker-compose:

version: "3.7"

services:
  file-storage-app:
        restart: unless-stopped
        container_name: ${SERVICE_NAME}_${ENV}_${PREFIX}
        build: .
        ports:
            - ${PORT}:${PORT}

  ninja:
    container_name: s3-ninja
    image: scireum/s3-ninja:8.0.0 #latest
    restart: always
    ports:
      - 9444:9000
    tmpfs:
      - "/home/sirius/data/${NINJA_BUCKET}/:uid=2000,gid=2000"
networks:
    default:
        name:
            net_${ENV}_${PREFIX}_backend

docker:

docker-compose version 1.29.2
Docker version 20.10.3

OS: Fedora 36

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hgghcommented, Oct 13, 2022

found the problem, working on a fix

0reactions
markplindsaycommented, Dec 9, 2022

I’m getting the same error when I try to use scireum/s3-ninja:latest on CircleCI.

Here’s their docker setup—it’s whatever the standard one is:

Server Engine Details:
  Version:          20.10.7
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       b0f5bc3
  Built:            2021-06-02T11:54:50.000000000+00:00
  OS/Arch:          linux/amd64
  Experimental:     false

docker-compose.test.yml:

redacted-s3-test:
  image: scireum/s3-ninja:latest
  expose:
    - 9000
  networks:
    - redacted-test

Console output:

project-redacted-s3-****-1  | SIRIUS Launch Utility
project-redacted-s3-****-1  | =====================
project-redacted-s3-****-1  | 
project-redacted-s3-****-1  | No JAVA_XMX present - using defaults...
project-redacted-s3-****-1  | No JAVA_OPTS present - using defaults...
project-redacted-s3-****-1  | Starting java -server -Xmx1024m -Djava.net.preferIPv4Stack=true -Dconsole=true -DdisableLogfile=true -Djava.awt.headless=true IPL
project-redacted-s3-****-1  | 
project-redacted-s3-****-1  | 
project-redacted-s3-****-1  | [0.075s][warning][os,thread] Failed to start thread "GC Thread#0" - pthread_create failed (EPERM) for attributes: stacksize: 1024k, guardsize: 4k, detached.
project-redacted-s3-****-1  | [0.075s][error  ][gc,task  ] Failed to create worker thread
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why my jib container failed to start pthread_create failed ...
I've try to free some ram (4g) but the container still crash. I've run my container with docker run and docker-compose and i...
Read more >
[Solved]-Why my jib container failed to start pthread_create ...
According to this github issue this is corrected by using docker 20.10.5. I've tried to upgrade my docker version and I doesn't have...
Read more >
Docker build fails with nonsensical EPERM: operation not ...
I have a circleci build that's failing when it tries to build a Docker image. Specifically it fails when it tries to execute...
Read more >
Docker-compose // OCI runtime create failed // pthread_create ...
OCI runtime create failed e.g. when trying to start joomla as compose-project with mysql: ERROR: for joomla_joomladb_1 Cannot start service ...
Read more >
Untitled
Resolves: Bug 1653163 - certmap fails when Issuer DN has comma in name ... Set a minimal version for llvm-private(-devel) - Rebase on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found