RFM question
-
@dc42, that sure is a weird one. I only have the normal SD card. I will do some more digging and also verify that there is nothing hidden on the card. Maybe there is a connection between this issue and me getting messages of getting low on memory.
Thank you for verifying that the command I am sending is correct. The microSD has more than likely been used for other stuff before. I generally wipe a card before using it but maybe I forgot to do it in this case. Taking the card out of the Duet and looking at the content did not reveal anything but I did not verify that I had the 'show hidden files' checkbox ticked in my file browser. It never occurred to me to specifically look for that.
Thanks! -
@dc42, as it turned out, I did have a bunch of old crap on one of my printers microSD card which explains the odd files. BUT .... I still have the issue with rfm crashing.
I have three printers. I have tried rfm on all three printers and it consistently fails. One hangs on 0:/www/js with a "read: connection reset by peer error message and then rfm exits. On another printer, rfm hangs while "fetching filelist for 0:/sys" ... no error message, it just hangs. Printer #3 hangs while "fetching filelist for 0:www/js". This operation also just hangs.A repeat run on all three printers had two crashes on 0:/www/js and one crash on 0:/sys.I waited maybe 5 minutes before aborting the individual instances of rfm.
One printer is connected via ethernet (6HC board) and two printers are connected via wifi (duet2wifi boards). The connection reset by peer error message is on one of the wifi boards.
I assume this is an issue with rfm and not something related to any of the duets but I thought it would be important to point this out in case people depend on rfm only to discover that the backup of the files was not complete.
-
Been playing around with rfm. I now believe that rfm crashes because of something encountered during the backup procedure. One printer crashes on 0:/sys, two are crashing on 0:/www/js. Each printer is consistent with it's own crash point which leads me to believe that the issue is caused by something being read during backup/file transfer.
There is one other error encountered which is 'connection reset by peer' which presumably is a network or wifi issue. -
I have run into a bit of a roadblock / dead end in trying to figure out what is happening. I thought I had it figured out when reducing the subdirectories that caused rfm to crash to less than 32 Mb allowed rfm to complete it's run. This was confirmed in a number of cases but then my final test did not go as expected. I copied a 12 Mb Gcode file to the printer a total of four times, renaming it in between. According to my testing, rfm should have crashed trying to back up 0:/ when it reached the /gcodes subdirectory but it completed without an error.
At this point I don't know if maybe the 0:/gcodes subdirectory is treated differently (why would it?) or if my idea of subdirectory size causing the issue is simply wrong.
It will be up to the developer ( @wilriker ?) to carry on with the trouble shooting. -
Hi @jens55
Could you run
rfm
with parameter-verbose
. This will print out more details that might better indicate where the problem actually happens. Please post the results here then.EDIT: I just released rfm v1.1.2-RC1 that fixes an issue with the
-debug
flag that will print even more details than-verbose
(but otherwise has no change in behavior). -
@wilriker, thanks for responding.
Using the -verbose parameter did not result in anything useful (ie there was no output, it just hung)
I installed the new version and redirected the stderr and terminal output to file output.txt
output.txt
Note that rfm hangs as it is trying to copy 0:/www/js. All the other files were already copied so this run did not copy anything (files were already present and rfm hung before it could copy anything)
Let me know if you need anything else.
Oh, I aborted rfm after maybe 30 seconds. It appeared to repeat things over and over ie it hung. I can delete the files that were backed up so that rfm actually copies something if the resulting output.txt file would help. -
@jens55 Yes, that actually helped. I found the issue and will provide a fixed version soon.
The problem is that
www/js
on your SD card contains more files than fit into a single response and while trying to fetch the remaining entries for this directoryrfm
locks itself in an endless loop because there is a bug on fetching the next entries. -
@jens55 Since I changed a lot of things besides fixing the issue for large file lists I bumped the version again and released the pre-release rfm v.1.2.0-RC1. Please check this. It should now work as intended. Besides the whole process can now be canceled by pressing CTRL+C cleanly.
-
@wilriker, Excellent! It works! Thanks for the quick fix!
-
@jens55 Thanks for confirming!
I edited the pre release into an actual final release of
rfm
1.2.0. No need for you to switch out anything it's the exact same binaries.Will update the tool thread tomorrow. Happy this was solved so easy and sorry for the bug.