Giter VIP home page Giter VIP logo

Comments (5)

PerpetuumMobile avatar PerpetuumMobile commented on July 27, 2024 1

Hello, still encountering the issue.
Ruby 2.3.1, rfusefs 1.0.3

When I try to use File.read in read_file to return requested file, I get it content, but with the error

ERROR: Exception nil not an Errno:: !respond_to?(:errno)
ERROR: Exception in exception!
ERROR: Exception #<NoMethodError: undefined method backtrace' for nil:NilClass> not an Errno:: !respond_to?(:errno) /home/mobil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rfuse-1.1.2/lib/rfuse.rb:333:in process'
/home/mobil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rfuse-1.1.2/lib/rfuse.rb:333:in loop' /home/mobil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rfuse-1.1.2/lib/rfuse.rb:293:in run'
/home/mobil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rfusefs-1.0.3/lib/fuse/rfusefs-fuse.rb:104:in run' /home/mobil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rfuse-1.1.2/lib/rfuse.rb:244:in main'
/home/mobil/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rfusefs-1.0.3/lib/rfusefs.rb:48:in `main'
/home/mobil/scripts/ruby/test/megafs/mega.rb:96:in <main>

Can I do some monkey patching to resolve it locally?

from rfusefs.

lwoggardner avatar lwoggardner commented on July 27, 2024

What version of rfuse_ng are you using? As far as I know there is no version that works correctly on ruby 1.9

from rfusefs.

leoc avatar leoc commented on July 27, 2024

I have the latest version of the gem installed.

I found out that this error occurs everytime read_file is executed and I return a files data via File.read, what causes the FUSE to assume the file does not exist. To avoid this error I just return the file name and the error disappears.

Still I have an error telling me "There is no such method length for nil object in rfusefs process() method"
I cannot reproduce the exact error message right now. Sorry for that.
But I think it happens when the file manager trys to read a big folder.

Do you have a clue to fix rfuse_ng for 1.9.3? I thought rfuse_ng was a fork to accomplish 1.9 compatibility?
Unfortunately I don´t know enough about fuse and c extensions to have a quick fix.

from rfusefs.

lwoggardner avatar lwoggardner commented on July 27, 2024

I think I found this (while documenting rfuse).

Error occurs when getattr returns nil, and possibly for other methods calling rfuse return_error() function without an exception having been thrown. I'm going to do a new release of rfuse (and then rfusefs) which should fix this.

from rfusefs.

mcarpenter avatar mcarpenter commented on July 27, 2024

I'm late to this party but maybe this will help some future traveller: the vanilla rfuse gem (to which rfusefs is related) throws the same error if, for example, the implementation of #read mistakenly returns more data than was requested by the caller. See the size parameter:

read(ctx, path, size, offset, ffi)

from rfusefs.

Related Issues (8)

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.