Code Monkey home page Code Monkey logo

Comments (11)

FooBarWidget avatar FooBarWidget commented on May 29, 2024

Can you run it through strace and post the output?

from baseimage-docker.

bastianh avatar bastianh commented on May 29, 2024

It's a while I have done that... looks like I'm not allowed to run strace ?

strace: test_ptrace_setoptions_for_all: PTRACE_TRACEME doesn't work: Permission denied
strace: test_ptrace_setoptions_for_all: unexpected exit status 1

from baseimage-docker.

bastianh avatar bastianh commented on May 29, 2024

I tried my image on a newly created virtual host and it is working there .. so I guess it has something to do with my server .) I'd like any hint if you got one, but I guess it's not a bug in the image ;)

from baseimage-docker.

FooBarWidget avatar FooBarWidget commented on May 29, 2024

Maybe a strange filesystem thing. But strace doesn't work even with sudo? What if you run your Docker container with --privileged?

from baseimage-docker.

mpeterson avatar mpeterson commented on May 29, 2024

Does /usr/bin/redis-server has execution privileges?

from baseimage-docker.

bastianh avatar bastianh commented on May 29, 2024

Yes... and using su to change user to redis and then starting the server from the shell works. Maybe I have enabled some security thing on this server? I don't know.

from baseimage-docker.

mpeterson avatar mpeterson commented on May 29, 2024

Mmm permissions on Linux are quite simple and can't think of anything you could have turned on to have such behavior. Try sending out a couple of 'ls -la' of both executables and the configuration files to see if there is something missing there 

---Sent from my iPhone

from baseimage-docker.

bastianh avatar bastianh commented on May 29, 2024

ok ... I think I found the culprit. In my dockerfile I have:

VOLUME ["/var/lib/redis"]
RUN chown redis /var/lib/redis

which I think always worked, but obviously not anymore, since the directory is now owned by root and that's the permission error I got.

BTW... I got strace working by putting the apparmor profiles to complain mode as described at https://help.ubuntu.com/community/AppArmor .. now I'm allowed to run strace

from baseimage-docker.

mpeterson avatar mpeterson commented on May 29, 2024

good that you found the problem.

from baseimage-docker.

FooBarWidget avatar FooBarWidget commented on May 29, 2024

I had a suspicion it would be something like AppArmor. :)

from baseimage-docker.

vasi avatar vasi commented on May 29, 2024

Yup, that seems to work. I ran aa-complain /etc/apparmor.d/docker and all is good.

from baseimage-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.