VU+ SOLO BH 2.X.X Cifs

verbal_666

Vu+ User
As reported from many users..
there's a way to correct this BUGGY behaviour using a network cif mount???


verbal_666 said:
CIFS works. There's still the same old bug. If server who has serving the cif goes standby or disconnect, BlackHole goes crazy and hang on when requesting access to it.​
IT'S A KNOWN "BUG" FROM ALL VERSIONS I MOUNTED (FROM 179) :-(​


Try this
1) BH: mount cif and access it (from gui or telnet /media/net/XXX)
2) CIF SERVER: make standby or disconnect network
3) BH: access now cif (from gui or telnet /media/net/XXX) --> BH hangs
4) BH: reboot, access now cif (from gui or telnet /media/net/XXX) --> BH connects (goto 2)
 

angelofsky1980

BlackHole Driver Specialist
As reported from many users..
there's a way to correct this BUGGY behaviour using a network cif mount???


verbal_666 said:
CIFS works. There's still the same old bug. If server who has serving the cif goes standby or disconnect, BlackHole goes crazy and hang on when requesting access to it.​
IT'S A KNOWN "BUG" FROM ALL VERSIONS I MOUNTED (FROM 179) :-(​


Try this
1) BH: mount cif and access it (from gui or telnet /media/net/XXX)
2) CIF SERVER: make standby or disconnect network
3) BH: access now cif (from gui or telnet /media/net/XXX) --> BH hangs
4) BH: reboot, access now cif (from gui or telnet /media/net/XXX) --> BH connects (goto 2)

As i answered it's not a bug: it's a CIFS protocol limitation.
 

verbal_666

Vu+ User
Sorry, obviously i did a mistake at point #2

Try this
1) BH: mount cif and access it (from gui or telnet /media/net/XXX)
2) CIF SERVER: make standby or disconnect network AND REPRISE FROM STANDBY OR RECONNECT NETWORK
3) BH: access now cif (from gui or telnet /media/net/XXX) --> BH hangs
4) BH: reboot, access now cif (from gui or telnet /media/net/XXX) --> BH connects (goto 2)
 

josea

Vu+ Newbie
I do not understand what is the solution, because it seems that I have the same problem, wanting to install a superior image to 1.79, all black and never get to finish installing a superior picture and go back to 1.79, thanks and greetings
 

verbal_666

Vu+ User
Mount a mountpoint using NFS protocol, not CIFS.
All NAS has this feature, also Windows can manage NFS with 3rd parties free software.
 

verbal_666

Vu+ User
An addition...
seems that after "about 5 minutes" after BH hangs accessing the cif, access reprises by itself...

[cif resource previously disconnected]
root@vusolo:~# time df
//192.168.1.2/DiscoD 1953512444 622326444 1331186000 32% /media/net/PC
real 4m 22.11s
user 0m 0.00s
sys 0m 0.00s

[from now on, until next disconnectio, cif is online immediately]
root@vusolo:~# time df
//192.168.1.2/DiscoD 1953512444 622326444 1331186000 32% /media/net/PC
real 0m 0.01s
user 0m 0.00s
sys 0m 0.00s

Bye.
 

verbal_666

Vu+ User
2.0.5 resolves the cif mount problems? Didn't read it in the "update readme".
I'm using 2.0.4, today i'll do the upgrade and test the system.
Thanks.
 

verbal_666

Vu+ User
Anyway, you can remove the link, and i copy/paste solution here down,

---------------------------------------

Hi there guys.
I maybe found a "patch" to resolve my CIFS management problem.
If useful, i write down the procedure.

I write down a very simple script to "ping" my net mountpoint to the CIFS/Netbios share (W7).
I put the script in crontab every 5 minutes, from now i can now reconnect to the share also if share goes standby or disconnect, immediately or after a few minutes, without rebooting stb.



SCRIPT:

#!/bin/sh
#DESCRIPTION=Reprise CIFS connection after X minutes from shell (by Verbal 2013)

mylog=/hdd/log/${0##*/}.log
echo $(date) >>$mylog
time ls /media/net 1>>$mylog 2>>$mylog
echo ------------------------------------------- >>$mylog



OUTPUT (in set log, hdd/pendrive in my stb):

Sat Jan 4 09:55:01 CET 2014
PC
real 0m 0.01s
user 0m 0.00s
sys 0m 0.00s
-------------------------------------------
Sat Jan 4 10:00:01 CET 2014
PC
real 0m 0.01s
user 0m 0.00s
sys 0m 0.00s
-------------------------------------------
Sat Jan 4 10:05:01 CET 2014
ls: /media/net/PC: Host is down
Command exited with non-zero status 1
real 0m 11.13s
user 0m 0.00s
sys 0m 0.00s
-------------------------------------------
Sat Jan 4 10:10:01 CET 2014
ls: /media/net/PC: Host is down
Command exited with non-zero status 1
real 0m 10.00s
user 0m 0.00s
sys 0m 0.00s
-------------------------------------------
Sat Jan 4 10:15:01 CET 2014
PC
real 0m 0.01s
user 0m 0.00s
sys 0m 0.00s
-------------------------------------------



cron:

*/5 * * * * /hdd/scripts/reprise_cifs.sh


Doing so, i can now open Mediaplayer without hang and without rebooting stb.
In my lan and with my stb (Solo/Vti 6.0.5) the reprise is done in 15 minutes max, without rebooting stb.

Bye.

---------------------------------------
 
Last edited by a moderator:

verbal_666

Vu+ User
ps. the CRON in BH is different than the classic in VTi.
So che entry,

*/5 * * * * /hdd/scripts/reprise_cifs.sh

must be set in both files in /etc/bhcron/

root@vuzero:/etc/bhcron# ls -l
-rw------- 1 root root 42 Dec 20 11:16 bh.cron
-rw------- 1 root root 42 Dec 20 11:16 root
root@vuzero:/etc/bhcron# cat *
*/15 * * * * /hdd/scripts/reprise_cifs.sh
*/15 * * * * /hdd/scripts/reprise_cifs.sh

(as BHCron usage guide)
 

Juan gaudiano

Vu+ Newbie
ps. the CRON in BH is different than the classic in VTi.
So che entry,

*/5 * * * * /hdd/scripts/reprise_cifs.sh

must be set in both files in /etc/bhcron/

root@vuzero:/etc/bhcron# ls -l
-rw------- 1 root root 42 Dec 20 11:16 bh.cron
-rw------- 1 root root 42 Dec 20 11:16 root
root@vuzero:/etc/bhcron# cat *
*/15 * * * * /hdd/scripts/reprise_cifs.sh
*/15 * * * * /hdd/scripts/reprise_cifs.sh

(as BHCron usage guide)


Hi Verbal,

Thanks for your support, unfortunately I'm not that experience doing this, the */5****/hdd/scripts/reprise_cifs.sh, should be entered in both bhcron files, bh. cron and root correct?

What I don't understand is the part of the script and the output where should I enter this information?

Sorry I need a dummy guide as I told you before I'm learning, hope you understand.

Thanks in advance for your support.

Best Regards
 

verbal_666

Vu+ User
Leave the ouput out, you don't really need it.

Make so, maybe you don't have an /hdd mounted also, so,

1) create the script under /usr/script/reprise_cifs.sh and make "chmod 755" it,

#!/bin/sh
#DESCRIPTION=Reprise CIFS connection after X minutes from shell (by Verbal 2013)
#mylog=/hdd/log/${0##*/}.log
mylog=/dev/null
echo $(date) >>$mylog
time ls /media/net 1>>$mylog 2>>$mylog
echo ------------------------------------------- >>$mylog

2) edit both bhcron files under "/etc/bhcron/" and insert this line in every file (bh.cron and root),

*/15 * * * * /usr/script/reprise_cifs.sh

Now you will not have more cif break and enigma2 hang. At least that's what this "ping netmount" does for me.. i never need to kill enigma2 or reboot stb for cif disconnect!!!

Hoping you'll solve.

Bye.
 

Juan gaudiano

Vu+ Newbie
Leave the ouput out, you don't really need it.

Make so, maybe you don't have an /hdd mounted also, so,

1) create the script under /usr/script/reprise_cifs.sh and make "chmod 755" it,

#!/bin/sh
#DESCRIPTION=Reprise CIFS connection after X minutes from shell (by Verbal 2013)
#mylog=/hdd/log/${0##*/}.log
mylog=/dev/null
echo $(date) >>$mylog
time ls /media/net 1>>$mylog 2>>$mylog
echo ------------------------------------------- >>$mylog

2) edit both bhcron files under "/etc/bhcron/" and insert this line in every file (bh.cron and root),

*/15 * * * * /usr/script/reprise_cifs.sh

Now you will not have more cif break and enigma2 hang. At least that's what this "ping netmount" does for me.. i never need to kill enigma2 or reboot stb for cif disconnect!!!

Hoping you'll solve.

Bye.

Hi verbal

Thank you for your patience.

I understand that the input should be copied the same as you pasted here?
 

Juan gaudiano

Vu+ Newbie
I copied the info restarted my box and i have lost my settings i think i did something wrong with dreamedit sorry
 
Last edited:
Top