[Plugin] Filemanager problem

somus1735

Member
May 25, 2018
833
0
16
I'm having problems with this plugin in both svn rutorrent and 3.3 stable

Code:
[16.11.2011 19:49:26] WebUI started.
[16.11.2011 19:49:27] FILE MANAGER: Failed to get directory contents : /
[16.11.2011 19:49:27] FILE MANAGER ignited
I'm using FreeBSD 8.2 amd64

I have set my filemanager/config.php
Code:
<?php

$fm['tempdir'] = '/tmp'; // path were to store temporary data ; must be writable
$fm['mkdperm'] = 775; // default permission to set to new created directories

// set with fullpath to binary or leave empty
$pathToExternals['rar'] = '/usr/local/bin/rar';
$pathToExternals['zip'] = '/usr/local/bin/zip';
$pathToExternals['unzip'] = '/usr/local/bin/unzip';
$pathToExternals['tar'] = '/usr/bin/tar';


// archive mangling, see archiver man page before editing

$fm['archive']['types'] = array('rar', 'zip', 'tar', 'gzip', 'bzip');

$fm['archive']['compress'][0] = range(0, 5);
$fm['archive']['compress'][1] = array('-0', '-1', '-9');
$fm['archive']['compress'][2] = $fm['archive']['compress'][3] = $fm['archive']['compress'][4] = array(0);




?>

I've also added the correct path to filemanger/scripts/* because bash is at /usr/local/bin/bash
Code: [Select]
head -n 1 *
==> archive <==
#!/usr/local/bin/bash

==> cp <==
#!/usr/local/bin/bash

==> extract <==
#!/usr/local/bin/bash

==> mv <==
#!/usr/local/bin/bash

==> rm <==
#!/usr/local/bin/bash

Any suggestions?
 

somus1735

Member
May 25, 2018
833
0
16
I'm not rude, just pointing out available resources that work well.

What permissions am I looking for?

I have set 775 on whats listed at $topDirectory in main config

It's in the same group which gives it read write and execute.
 

das329717

Member
May 25, 2018
928
0
16
Never tested on BSD, probably the find util takes other params, or has a different output.
 

somus1735

Member
May 25, 2018
833
0
16
Thanks for the reply! This makes sense.

I haven't explored the program completely but I found this line in flm.class.php

Code:
array('find', $this->workdir, '-mindepth
', '1', '-maxdepth', '1', '-printf', '%y\t%f\t%s\t%C@\t%#m\n')));
-printf isn't a valid argument in find on FreeBSD.
 

jith45

Member
May 25, 2018
960
0
16
i'm wondering if we could use ports/misc/findutils and just change find to gfind
 

jith45

Member
May 25, 2018
960
0
16
it did work. Just edit the file to gfind instead.

Also you have to add lines for bzip2 and gzip
 

shwetha17

Member
May 24, 2018
785
0
16
He, how you solve the problem? I have the same problem with filemanager plugin for rutorrent with nas synology (Linux synology_evansport_214play) and the error is the same.

Regards