Code Monkey home page Code Monkey logo

Comments (29)

wizzard avatar wizzard commented on July 29, 2024

Hello,

please follow the instuctions located in our wiki: https://github.com/skoobe/riofs/wiki/Centos
You need to manually download and install libevent.

Hope it helps !

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

Yep, I did all that. That's what I meant by "I followed the instructions on how to install the dependencies".

from riofs.

wizzard avatar wizzard commented on July 29, 2024

Before running RioFS configure script, please make sure you execute "export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig" in the same terminal window (it tells "configure" script where to locate libevent package).

Also it's worth checking that:

  • /etc/ld.so.conf.d/riofs.conf file is created and contains 1 line: /usr/local/lib/
  • /usr/local/lib/pkgconfig/libevent.pc file exists

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

Yep, that conf file exists, and contains the one line.
Yep, that file exists.

from riofs.

wizzard avatar wizzard commented on July 29, 2024

I've just tested on a clean CentOS 6.5 installation: followed the steps we have in our wiki - everything works fine.

I really have no other ideas what could be wrong, please try to run the following command within riofs directory:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && ./configure

if you still experience the problem, please attach config.log which is located in riofs directory.

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

I ran that, and same problem.

Here's my config.log: http://pastebin.com/6RQT7h00

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

Also, I'm running this AMI: https://aws.amazon.com/marketplace/pp/B00IGJMIOI
I've modified it to install node.js

from riofs.

wizzard avatar wizzard commented on July 29, 2024

Checking your config.log I see that pkg-config script is unable to locate libevent installation.
Could you please execute the following command (make sure you set PKG_CONFIG_PATH variable): pkg-config --list-all | grep libevent. You should see 3 libevent packages installed on your system.

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

I get

$ pkg-config --list-all | grep libevent
libevent_pthreads libevent_pthreads - libevent_pthreads adds pthreads-based threading support to libevent
libevent libevent - libevent is an asynchronous notification event loop library
libevent_openssl libevent_openssl - libevent_openssl adds openssl-based TLS support to libevent

from riofs.

wizzard avatar wizzard commented on July 29, 2024

Looks like libevent is properly installed. So I have no ideas what could be wrong.
I'm going to fix RioFS configuration script, you will be able to manually specify libevent installation path.

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

I am at your mercy. I'm really excited to use this tool

from riofs.

wizzard avatar wizzard commented on July 29, 2024

I've updated configuration script, could you please give it a try:

  • Get the latest version of RioFS (git pull)
  • Run configuration script: sh autogen.sh && ./configure --with-libevent=/usr/local
  • Now it should locate installed libevent in /usr/local folder
  • Build and install it: make && make install
  • Executable will be placed in /usr/local/bin/riofs

Please let me know how does it work for you!

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

It worked! I am able to install! Thank you

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

When trying to mount a directory, I get this:

fuse: failed to exec fusermount: No such file or directory
ERROR! Failed to mount FUSE partition !
ERROR! Failed to create FUSE fs ! Mount point: bucket

bucket is a directory

When I type "fuse" I get "command not found".

If I include the -v param I get this:

[amsadmin@ip-10-144-65-36 mnt]$ riofs -v [bucketname] bucket
22:11:13 [main](main main.c:782) Using config file: /usr/local/etc/riofs/riofs.conf.xml
22:11:13 [con](http_connection_init http_connection.c:79) [con: 0x1347a50] Connecting to s3.amazonaws.com:80
22:11:13 [con](http_connection_make_request http_connection.c:804) [con: 0x1347a50] GET /bucketname/?acl bucket: bucketname, host: s3.amazonaws.com, out_len: 0
22:11:13 [con](http_connection_on_responce_cb http_connection.c:464) [con: 0x1347a50] Got HTTP response from server! (33msec)
22:11:13 [con](http_connection_release http_connection.c:183) [con: 0x1347a50] Connection object is released!
22:11:13 [con](http_connection_make_request http_connection.c:804) [con: 0x1347a50] GET /bucketname/?versioning bucket: bucketname, host: s3.amazonaws.com, out_len: 0
22:11:13 [con](http_connection_on_responce_cb http_connection.c:464) [con: 0x1347a50] Got HTTP response from server! (7msec)
22:11:13 [con](http_connection_release http_connection.c:183) [con: 0x1347a50] Connection object is released!
22:11:13 [main](application_on_bucket_versioning_cb main.c:503) Bucket has versioning disabled !
22:11:13 [con](http_connection_init http_connection.c:79) [con: 0x1346470] Connecting to s3.amazonaws.com:80
22:11:13 [con](http_connection_init http_connection.c:79) [con: 0x1346fc0] Connecting to s3.amazonaws.com:80
22:11:13 [con](http_connection_init http_connection.c:79) [con: 0x1349d20] Connecting to s3.amazonaws.com:80
22:11:13 [con](http_connection_init http_connection.c:79) [con: 0x134a2f0] Connecting to s3.amazonaws.com:80
22:11:13 [con](http_connection_init http_connection.c:79) [con: 0x134a8f0] Connecting to s3.amazonaws.com:80
22:11:13 [con](http_connection_init http_connection.c:79) [con: 0x134aec0] Connecting to s3.amazonaws.com:80
22:11:13 [con](http_connection_init http_connection.c:79) [con: 0x134b490] Connecting to s3.amazonaws.com:80
22:11:13 [con](http_connection_init http_connection.c:79) [con: 0x134ba60] Connecting to s3.amazonaws.com:80
22:11:13 [dir_tree](dir_tree_add_entry dir_tree.c:226) [ino: 1] Creating new DirEntry: /, fullpath: , mode: 16877 time: 2014-05-30 22:11:13
22:11:13 [dir_tree](dir_tree_create dir_tree.c:117) DirTree created
fuse: failed to exec fusermount: No such file or directory
22:11:13 [fuse](rfuse_new rfuse.c:176) Failed to mount FUSE partition !
22:11:13 [main](application_finish_initialization_and_run main.c:426) Failed to create FUSE fs ! Mount point: bucket
22:11:13 [main](application_destroy main.c:536) Destroying application !
22:11:13 [con](http_connection_on_close http_connection.c:196) [con: 0x1347a50] Connection closed !

Should I make a new Issue for this?

The bucket name is censored

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

I also can't do

sudo riofs -v [bucketname] bucket.

It gives me

sudo: riofs: command not found

Without sudo, the command runs, though I get the above error.

from riofs.

henningpeters avatar henningpeters commented on July 29, 2024

Try sudo make install in riofs directory. That should install all binaries system-wide.

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

After doing that:

$ sudo riofs [bucketname] testdir
sudo: riofs: command not found

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

I'm having some sudo related problems

I think I was able to get it to run by doing

sudo -E env AWS_ACCESS_KEY_ID="[key]

And then again for the secret key,

And then

sudo -E env PATH=$PATH riofs [bucket] testdir

But now I'm stuck in some sort of catch 22 because cd testdir gives me permission denied and sudo cd testdir gives me command not found.

sudo -E env PATH=$PATH cd testdir gives me env: cd: No such file or directory

This AMI that I'm using, by the way, has locked down the root user. I can still sudo stuff, though.

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

I followed this answer: http://stackoverflow.com/questions/4976658/on-ec2-sudo-node-command-not-found-but-node-without-sudo-is-ok?rq=1 and I was able to run my command through sudo (normally), but the environment variables weren't set, since sudo has a different env that doesn't save

from riofs.

wizzard avatar wizzard commented on July 29, 2024

the easiest way is to edit corresponding riofs.conf.xml file (which is located in /usr/local/etc/riofs/riofs.conf.xml by the default, or use -c to specify it).
There are two configuration "variables": access_key_id and secret_access_key which you could set instead of env variables.

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

Well, I already made all those changes to sudo's environment, so that isn't a problem anymore.

I can mount a directory, I think, but once I do that I lose access to it, because sudo cd isn't a thing and cd [mounteddir] gives me permission denied.

I mentioned before that the AMI I'm using https://aws.amazon.com/marketplace/pp/B00IGJMIOI disables the root login. Could this be interfering with the installation somehow?

By the way, I can write files directly to the directory through commands that use sudo, but I'd still like to be able to look at the files through normal means

But the main error that I can't get around is, when not running riofs under sudo: I get this

fuse: failed to exec fusermount: Permission denied
ERROR! Failed to mount FUSE partition !
ERROR! Failed to create FUSE fs ! Mount point: s3

from riofs.

wizzard avatar wizzard commented on July 29, 2024

Could you please try to specify --fuse-options="allow_other" when you are launching riofs ?
This is Fuse related option, more information you could find here: http://manpages.ubuntu.com/manpages/precise/man8/mount.fuse.8.html

Also, you could set the owner of filesystem by specifying --uid= or / and --gid= options (to find your current uid execute id command)

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

That allow other option worked

I think all my issues are resolved now. Thanks for staying with me for these four hours

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

One more question. How do I unlink a directory?

from riofs.

wizzard avatar wizzard commented on July 29, 2024

You need to kill RioFS process first killall riofs and then you can remove that directory.

If you find that RioFS process is killed, but the directory is inaccessible, try to execute the following command: sudo fusermount -u [mountpoint] which will "force unmount".

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

after you kill the process, how do you turn it on again?

from riofs.

wizzard avatar wizzard commented on July 29, 2024

you need to (re-)start riofs as you did it previously: sudo -E env PATH=$PATH riofs [bucket] testdir

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

Is it possible to mount a drive on startup?

from riofs.

gCurtisCT avatar gCurtisCT commented on July 29, 2024

Also, is two-way data-binding possible? I mounted a directory, and uploaded a file to the S3 bucket using the console. I checked the directory and I don't see my file.

Oh, it appeared after a few minutes.

Can I speed up this synchronization process?

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.