TurboGit/hubicfuse

Unable to read files

praveenkathari opened this issue · 12 comments

I followed all the steps to install and it worked, but while reading files /copying file i am getting the error as "cp: cannot open ‘files’ for reading: No such file or directory"

No sure to understand the problem. Is the Hubic properly mounted? What was the command used to mount? What does "mount | grep hubic" command returns?

yes , its mounted properly using "sudo hubicfuse /mnt/hubic -o noauto_cache,sync_read,allow_other"

I can see the files in the default folder and

"mount | grep hubic" ---> hubicfuse on /mnt/hubic type fuse.hubicfuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)

I can able to mkdir "test" in /mnt/hubic but i was unable to copy or create any file

error: "cp: cannot create regular file ‘./file.txt’: Input/output error"

I think you cannot create files directly in the root folder, you should create the file in a subfolder.

From: Praveen Kathari [mailto:notifications@github.com]
Sent: Friday, August 12, 2016 11:50
To: TurboGit/hubicfuse hubicfuse@noreply.github.com
Subject: Re: [TurboGit/hubicfuse] Unable to read files (#134)

I can able to mkdir "test" in /mnt/hubic but i was unable to copy or create any file

error: "cp: cannot create regular file ‘./file.txt’: Input/output error"


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #134 (comment) , or mute the thread https://github.com/notifications/unsubscribe-auth/AKO692q-psuWGtmVkuiCbhPDHwThyGIIks5qfE_DgaJpZM4Jf_rG . https://github.com/notifications/beacon/AKO69_4qMDzbyMK6cjwczGV41SY2aa2Uks5qfE_DgaJpZM4Jf_rG.gif

I create a subfolder using the mkdir command and it was reflecting in my hubic web console , and while was create/copy any file inside the subfolder , i am getting the error . plz help . thanks

I've the same issue, does anyone know how to solve it?
Thanks in advance.
M.

This is the most strange issue reported, I have no clue as to what is going on. I have no issue as many other users I suppose otherwise hubicfuse would be just a bad joke! Maybe a wrong mount options? What is the permissions to you mount point before mounting hubic? We will certainly need more information to figure this out...

Sorry, for not explain me better.
This is what happen on my vps now, it worked for a lot of time but now happen this:
`root@vpsxxxxxx:~# mount | grep hubic
hubicfuse on /mnt/cloud type fuse.hubicfuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other)

root@vpsxxxxxx:~# mkdir /mnt/cloud/default/tvcc/test

root@vpsxxxxxx:~# echo test >/mnt/cloud/default/tvcc/test/test.txt
-bash: /mnt/cloud/default/tvcc/test/test.txt: Input/output error
`
Can you help me to understand?
Thx.
M.

But the options are not the one documented!

On my side I have only:

noauto,noauto_cache,sync_read,user,allow_other

And I can mount not as root, and copy files as myself into the mounted drive.

The user_id=0 and group_id=0 means that this is mounted as root. I've never tested that.

Also my /mnt/hubic has the user set as myself and the group is "users".

So please try:

  1. unmount /mnt/hubic
  2. change the fstab option with the above
  3. do a logged as you:

sudo chown $(whoami):users /mnt/hubc

  1. be sure to have latest hubicfuse source and recompiled with you current kernel
    (if compiled from source, not if using the one from your distrib)
  2. mount hubic
  3. test the copy

Please do really all this logged as you not as root. I know this works for me.

Ok, I solved. The problem was I deleted the tmp files folders as suggested by praveenkathari.
Thanks to everyone for the help.
M.

Closing since solved.