Code Monkey home page Code Monkey logo

Comments (10)

wizzard avatar wizzard commented on July 29, 2024

Hello,
first of all, I'd like to let you know that we didn't really test RioFS with cache turning off. But as far as I remember it should work, as there aren't any additional code used (some time ago I run a number of tests with caching turned off to see how does RioFS behave, and it worked fine).

As I understand, you are confused by the log messages which mention "cache". This is ok, as we are accessing caching subsystem code (it prints "Reading from cache") and cache returns "0 bytes available" for a requested part.

from riofs.

m-garanin avatar m-garanin commented on July 29, 2024

Hello, my use-case:

  1. A-host write "task.txt" to S3 (by RioFS)
  2. B-host read and change "task.txt".
  3. After hour, A-host read "task.txt" but always get old content of file.

Now i rewrite rio-config (and total reload\unmount RioFS):

  <dir_cache_max_time type="uint">0</dir_cache_max_time>
    <file_cache_max_time type="uint">0</file_cache_max_time>
    <md5_enabled type="boolean">False</md5_enabled>
    <cache_enabled type="boolean">False</cache_enabled>
    <cache_dir type="string">/tmp/riofs</cache_dir>
    <cache_dir_max_size type="uint">0</cache_dir_max_size>
    <cache_object_ttl type="uint">0</cache_object_ttl>

Problem dirty solved,
but in /tmp/rio-fs i always see new files "cache_mng_*" (why? i disable cache).

from riofs.

wizzard avatar wizzard commented on July 29, 2024

Thank you for the test case, I'll check and see how it works for me!

from riofs.

tdensmore avatar tdensmore commented on July 29, 2024

Is this still open? If so, can I ask about the current knowledge of the caching system?

from riofs.

wizzard avatar wizzard commented on July 29, 2024

I can't reproduce this issue on my side. If anyone's managed to get this error - please attach log file, so I could analyze it.

from riofs.

chand8 avatar chand8 commented on July 29, 2024

Hi, recently I have implemented RioFS on ubuntu 16.0.4 LTE. I have configured RIOFS as follows
'sudo riofs -o "allow_other" -o "direct_io" -c '/usr/local/etc/riofs/riofs.conf.xml' --uid=48 --gid=48 -l /var/log/riofs.log my-bucket /var/www/html/public/data'
Initially, it was working fine, but now a I am seeing errors in log file.

ERROR! [ino: 305] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 305] Failed to open file for reading! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 1525] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1525
ERROR! [ino: 998] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_998
ERROR! [ino: 1790] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1790
ERROR! [ino: 305] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 305] Failed to open file for reading! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 1525] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1525
ERROR! [ino: 998] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_998
ERROR! [ino: 1790] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1790
ERROR! [ino: 305] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 305] Failed to open file for reading! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 1525] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1525
ERROR! [ino: 998] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_998
ERROR! [ino: 1790] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1790
ERROR! [ino: 305] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 305] Failed to open file for reading! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 1525] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1525
ERROR! [ino: 998] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_998
ERROR! [ino: 305] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 305] Failed to open file for reading! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 1790] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1790
ERROR! [ino: 1525] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1525
ERROR! [ino: 998] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_998
ERROR! [ino: 305] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 305] Failed to open file for reading! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_305
ERROR! [ino: 1790] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1790
ERROR! [ino: 1525] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1525
ERROR! [ino: 998] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_998
ERROR! [ino: 1790] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1790
ERROR! [ino: 1525] Failed to create / open file for writing! Path: /tmp/cache/BdoSIvoV6b69ejy1n8sJ/cache_mng_1525

what does it mean. It is not able to create cache files on the disk ?

from riofs.

wizzard avatar wizzard commented on July 29, 2024

Hello,
please check if /tmp/cache/BdoSIvoV6b69ejy1n8sJ/ folder exists and has enough space to create new files.

from riofs.

chand8 avatar chand8 commented on July 29, 2024

yes, disk was filled. too many logs are getting generated. I have set Cache to true, and I can see couple of files in /tmp/cache folder. Do I need to manually clear the files form cache folder or RioFs will automatically clear them ?

from riofs.

chand8 avatar chand8 commented on July 29, 2024

My Cache directory is going off after one day and riofs is not able to create cache folder. where can I need to set permissions to make sure that cache directory gets created automatically and also sub folders.

from riofs.

chand8 avatar chand8 commented on July 29, 2024

@wizzard after every 24 hours, the cache directory is going off. once I restart riofs, then the folder gets created and riofs works normally. from logs I can see lots of [con: 0x1ece270].
My config file is as follows and the mount command I am using is
/usr/local/bin/riofs -o "allow_other" -o "direct_io" -c '/usr/local/etc/riofs/riofs.conf.xml' --uid=48 --gid=48 --fmode=0777 --dmode=0777 -l /var/log/riofs.log my-staging-data /var/www/application/public/data
riofs-config-file.zip
I have noticed this from last 3 days.

from riofs.

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.