GithubHelp home page GithubHelp logo

Comments (4)

grantjenks avatar grantjenks commented on June 27, 2024

Hit it again. Odd that it hits on os.remove. I was able to reproduce in the shell on the server. But I screwed up while debugging and lost the reference. When it happens again it's worth debugging on the server. The key format is:

'thread-question-summary-%d-%s' % (thread_id, 'en')

from python-diskcache.

grantjenks avatar grantjenks commented on June 27, 2024

This is odd:

In [23]: !ls -al /tmp/xxx-cache/000/8f/17/
total 16
drwxr-xr-x  2 grantj root 4096 Mar 23 19:55 .
drwxr-xr-x 48 grantj root 4096 Mar 27 15:12 ..
-rw-r--r--  1 grantj root 5740 Mar 23 19:55 cdc864e3de42f9a7578953f5f0c7.val

In [24]: !ls -al /tmp/xxx-cache/000/8f/f3/
total 12
drwxr-xr-x  2 root   root 4096 Mar 26 23:57 .
drwxr-xr-x 48 grantj root 4096 Mar 27 15:12 ..
-rw-r--r--  1 root   root 2732 Mar 26 23:57 c6f9cfb2aad602bb9a59db9ec183.val

Some cache values are stored as root. Not all are. Only the ones here. How does that happen?

If it now tries to delete the key at 000/8f/f3 then it raises OSError.

from python-diskcache.

grantjenks avatar grantjenks commented on June 27, 2024

Attempted fix:

sudo find /tmp/xxx-cache/ -user root -type d -exec chown grantj:root {} \;
sudo find /tmp/xxx-cache/ -user root -type f -exec chown grantj:grantj {} \;

We'll see. It's otherwise very odd. Maybe I was debugging something and running uwsgi manually as root? I'm not sure.

from python-diskcache.

grantjenks avatar grantjenks commented on June 27, 2024

Error happened again. I think it may be the crontab. Some management commands are run under root. I very much doubt this is a DiskCache bug.

from python-diskcache.

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.