Giter Site home page Giter Site logo

Exception running megafuse about megafuse HOT 3 OPEN

matteoserva avatar matteoserva commented on August 20, 2024
Exception running megafuse

from megafuse.

Comments (3)

Human avatar Human commented on August 20, 2024

FWIW, I'm having a similar issue, also with -f -o allow_other -o uid=1000. When I become root via sudo or su, I don't get the above error (sometimes I get a Segmentation fault, though). However, sometimes it works. It always gets the above error when run as a daemon (monit runs a script that invokes MegaFuse if needed).

@junalmeida Did you ever find a fix for this?

from megafuse.

Human avatar Human commented on August 20, 2024

Steps to reproduce:

sudo su
env -i PATH=/bin:/usr/bin:/sbin:/usr/sbin /bin/sh
MegaFuse -c /path/to/megafuse.conf -f -o allow_other

The env line re-creates the shell environment typically available to daemons.

from megafuse.

Human avatar Human commented on August 20, 2024

After comparing two shell environments - one where the above error happens 100% of the time and one where it happens 0% of the time - I found a workaround. If you add HOME to your shell's environment, this error goes away.

Put this line before any MegaFuse invocation:

export HOME=/root

Without looking at the source code, I'd guess that something involved in processing the fuse parameters requires knowing what $HOME is, assumes it's non-null, then tries to assign it to a String.

from megafuse.

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.