Giter Site home page Giter Site logo

MegaFuse hangs about megafuse HOT 19 OPEN

matteoserva avatar matteoserva commented on August 20, 2024
MegaFuse hangs

from megafuse.

Comments (19)

matteoserva avatar matteoserva commented on August 20, 2024

The upload fails for some reason, probably because of invalid characters in the file name.
I pushed a patch that fixes the deadlock when the upload fails.

from megafuse.

maarts avatar maarts commented on August 20, 2024

Hi,

thanks, it works!

Before I use mega with MegaFuse, I use Ubuntu One with u1ftp and there was accepted all these encfs stuff. Is there a opportunity in MegaFuse to fix the issue with the invalid characters?

Thanks!

from megafuse.

maarts avatar maarts commented on August 20, 2024

Hi,

After a while of testing crashes MegaFuse. For the test I use cp. Rsync crashes too.

Is this a general issue?

In the first time I copy via rsync 1400 files (encfs stuff) without any problems to mega.

from megafuse.

matteoserva avatar matteoserva commented on August 20, 2024

I pushed a new patch that will hopefully solve the crash problem.
what are the last messages when megafuse crashes?

from megafuse.

maarts avatar maarts commented on August 20, 2024

Hi,

here is the output after stop cp.

output cp:

cp: reguläre Datei „/mnt/files/encfs/encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/0EMzMJ009vvilCkTJ3e4D4Dl“ kann nicht angelegt werden: Das numerische Ergebnis ist außerhalb des gültigen Bereiches
cp: reguläre Datei „/mnt/files/encfs/encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/h5OrnWXItKFVWDbJgnpDQSj7“ kann nicht angelegt werden: Das numerische Ergebnis ist außerhalb des gültigen Bereiches

output MegaFuse:

flags:20001
searching node by path: /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/-337l-T7xXLr3qBx8GvzNfdZ
node found in MEGA: /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/-337l-T7xXLr3qBx8GvzNfdZ
creato il file /tmp/fileaS0B6e
searching node by path: /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/-337l-T7xXLr3qBx8GvzNfdZ
node found in MEGA: /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/-337l-T7xXLr3qBx8GvzNfdZ
topen riuscito

download complete

file: /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/-337l-T7xXLr3qBx8GvzNfdZ ora in stato DOWNLOADING
/usr/include/c++/4.6/debug/vector:313:error: attempt to subscript container 
    with out-of-bounds index 0, but container only holds 0 elements.

Objects involved in the operation:
sequence "this" @ 0x0x20d4940 {
  type = NSt7__debug6vectorIbSaIbEEE;
}

from megafuse.

maarts avatar maarts commented on August 20, 2024

Hi,

MegaFuse crashes via rsync:

flags:20000
searching node by path: /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/,015I8ahbkV,JSWFNcYk-ztg
node found in MEGA: /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/,015I8ahbkV,JSWFNcYk-ztg
creato il file /tmp/filewuTAbg
searching node by path: /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/,015I8ahbkV,JSWFNcYk-ztg
node found in MEGA: /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/,015I8ahbkV,JSWFNcYk-ztg
topen fallito!

from megafuse.

maarts avatar maarts commented on August 20, 2024

Hi,

with the new version (commit 140) and rsync crashes MegaFuse:

--------requested rename from /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/.,0mBzw7A-SgvlqI,MdPipiY1.D32x0E to /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/,0mBzw7A-SgvlqI,MdPipiY1
1 file removed
fullpath /encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/,0mBzw7A-SgvlqI,MdPipiY1
/usr/include/c++/4.6/debug/vector:313:error: attempt to subscript container 
    with out-of-bounds index 0, but container only holds 0 elements.

Objects involved in the operation:
sequence "this" @ 0x0xbd5588 {
  type = NSt7__debug6vectorIP4NodeSaIS2_EEE;
}

from megafuse.

maarts avatar maarts commented on August 20, 2024

Hi,

with cp it works!

from megafuse.

maarts avatar maarts commented on August 20, 2024

so, I play a little bit with cp. If I copy files for the first time to mega, MegaFuse works like a charm. But if I copy the same files once more with a difference of files, cp gives this output:

cp:

cp: reguläre Datei „/mnt/files/encfs/encfs_1/NoPWHHBeetddaYHReqpYE6TS/okbPu9LzGsGd,-jfJumOlO4-/52z3RGPNQsgUoWFmz7LQaCyH/WcdJpbufcvMf3-K3DuiD6Fjw/iEfD-1i6wc6HBHg7f0WOdf-e/ncXZDrNC3MRybo9fLUvwXLn7“ kann nicht angelegt werden: Das numerische Ergebnis ist außerhalb des gültigen Bereiches

I think there is a general issue with file update (see rsync crash).

from megafuse.

matteoserva avatar matteoserva commented on August 20, 2024

I tested cp and it works fine. did you test it with shorter filenames?
MEGA allows multiple files to have the same name, MegaFuse first uploads the new file then deletes the old one

from megafuse.

maarts avatar maarts commented on August 20, 2024

I play a little bit more with shorter filenames, but cp crashes here too:

searching node by path: /test/sdsdtttt
node found in MEGA: /test/sdsdtttt
creato il file /tmp/filebekuJ8
searching node by path: /test/sdsdtttt
node found in MEGA: /test/sdsdtttt
API request failed, retrying in 100 ms - Use 'retry' to retry immediately...
unlink eseguito
topen riuscito

download complete

file: /test/sdsdtttt ora in stato DOWNLOADING
/usr/include/c++/4.6/debug/vector:313:error: attempt to subscript container 
    with out-of-bounds index 0, but container only holds 0 elements.

Objects involved in the operation:
sequence "this" @ 0x0x1029ca0 {
  type = NSt7__debug6vectorIbSaIbEEE;
}

Rsync crashes every time. :(

from megafuse.

matteoserva avatar matteoserva commented on August 20, 2024

I'm still unable to reproduce this bug. Apparently Megafuse is trying to download the file while it is uploading it. did you try with cp alone? I suspect that rsync corrupts some megafuse data and then cp fails because that data is corrupted

from megafuse.

maarts avatar maarts commented on August 20, 2024

Hi,

I found the problem!

With a normal desktop (ubuntu 12.04) all works fine without any issues. On my Raspberry Pi with raspbian I have the above described issues.

Do you have an idea, why the Raspberry Pi produces this issues with the recopy?

from megafuse.

matteoserva avatar matteoserva commented on August 20, 2024

still trying to understand why.
did you compile megafuse on the rasPI?
is the rasPI using debian?

from megafuse.

maarts avatar maarts commented on August 20, 2024

Hi,

I compile MegaFuse on the RPI without any problems. I use Raspbian = Debian Wheezy.

The main issue is the recopy of the same files. At the first copy all works great.

from megafuse.

maarts avatar maarts commented on August 20, 2024

Hi,

I build a qemu-kernel for ARM1176. So, I am able to run MegaFuse in qemu with the same issues like the real machine.

Do you want to use the qemu machine for debugging?

from megafuse.

matteoserva avatar matteoserva commented on August 20, 2024

yes thanks. I'm not experienced with linux on arm but I'll try to find out what's the problem

from megafuse.

chaoscommander avatar chaoscommander commented on August 20, 2024

Digging this up to add that hanging also randomly occurs using Duplicity. Not sure if this is always the problem (since I usually just reboot the machine, having no time for debugging), but in the case that just happened to me, MegaFuse stopped in the middle of a download, saying "download fallito -5" and refused to be killed by anything less than kill -9 (also keeping me from killing Duplicity). Could that lockup also be fixed, so that a failed download is automatically retried maybe?

from megafuse.

chaoscommander avatar chaoscommander commented on August 20, 2024

...Bump?

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.