Large copy of files to Shared destroy the box

Posted by Teno 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Large copy of files to Shared destroy the box
February 07, 2018 10:32PM
Hello there!

I have a lots of problems when copy a 652 file folder to the shared folder, the PirateBox become unstable in my MR3040...

Any ideas?

Cheers!

Marcelo from Argentina
Re: Large copy of files to Shared destroy the box
February 08, 2018 04:32AM
Hi,
Can you explain what "unstable" is?
Are all files in one folder?
Is the minidlna running?

best regards Matthias
Re: Large copy of files to Shared destroy the box
February 08, 2018 06:27PM
Hello There!!!

Here Is what I do:

I put the pendrive in my laptop, and just paste a folder (600+ files) into the Shared folder. Tried from Win10, Win7 and Mint.

Then plug the pendrive into the MR3040, and some random happens, some devices cannot see the board, DHCP stop responding after a while, and it ends with nothing working.

If I upload the files using the "upload" button, none of this happend and the box keeps working fine.

Any ideas?

Cheers!

Marcelo from Argentina
Re: Large copy of files to Shared destroy the box
February 09, 2018 05:41PM
Hi,
do you run minidlna for those files? If yes, this maybe one reason for the issues you run into.
Another reason can be the cleanup procedure we perform during boot. We clean some 0Byte files and files named tmpDroopy. In fact, while this happens, droopy should not be ready yet:

This is the section
     if [ "$DROOPY_ENABLED" = "yes" ] ; then
         #Start here the PirateBox-Parts droopy i.e.        
     echo "Starting droopy..."
         find  $UPLOADFOLDER/ -iname tmp\* -exec rm {} \;
         #Delete 0 Byte Files
         delete_empty.sh  $UPLOADFOLDER

         DROOPY_USER=""
         if [ "$DROOPY_USE_USER" = "yes" ] ; then
             DROOPY_USER=" -c $LIGHTTPD_USER:$LIGHTTPD_GROUP "
         fi
         DROOPY_DO_CHMOD=""
         test -n "$DROOPY_CHMOD" && DROOPY_DO_CHMOD="--chmod $DROOPY_CHMOD"
         start-stop-daemon $DROOPY_USER  -m -S -b  -p $PIDFILE_DROOPY -x $PIRATEBOX/bin/droopy -- -d "$UPLOADFOLDER"  -m "$DROOPY_TXT" $DROOPY_DO_CHMOD $DROOPY_USERDIR  $DROOPY_PORT 
         echo  $?
       fi
If you comment
         find  $UPLOADFOLDER/ -iname tmp\* -exec rm {} \;
         #Delete 0 Byte Files
         delete_empty.sh  $UPLOADFOLDER
,
it might help.

The next analysis needs much more output from your box... see Technical summary

best regards Matthias
Re: Large copy of files to Shared destroy the box
February 09, 2018 06:05PM
Got it! I just a combo of uploading files and creating folders via ssh, way more stable and didn't have any problem now.

Thank you!